Assuming this isn't the entire Servlet class, it's hard to say what the problem is. Does the servlet "work" if you add it to the web.xml deployment descriptor insted of using annotations? Could you give use some more information about the servlet container / application server you're deploying to and what you're deployment structure looks like?
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Joined: Nov 23, 2012
actually its working when mapping is done in web.xml file but i want to do it with the annotation so where is i wrong