Hi Abhishek, Your code is perfectly legal. No error in your code. I think there is some configuration problem. Check your web.xml file for servlet configuration and servlet mapping. If you would change in your web.xml just restart the server and try it in browser. Hope it will helps you. If you have same problem again give me your web.xml file.
Raghu J<br />SCJP 1.4<br /> <br />The Wind and waters are always<br />on the side of the ablest navigators.<br /><a href="http://groups.yahoo.com/group/scjp_share" target="_blank" rel="nofollow">SCJP Group</a><br /><a href="http://groups.yahoo.com/group/JavaBeat_SCWCD" target="_blank" rel="nofollow">SCWCD Group</a>