Here one more question arise to me. I wanted to have /test/* in the url-pattern and wanted to invoke the JSP file. Is it possible. Because I am getting error. May be I am missing something. Please help.
But then why I am getting error when i run the servlet directly.
I using java 8 and Marse 2 eclipse. Even i tried using annotations without using web.xml. But when i run JSP page it is working but when i run the servlet directly it is giving 404 error.