linked the Anntation way to the servlet code