Swastik Dey wrote:
Swastik Dey wrote:You need to create the mapping inside web.xml
Dave Tolls wrote:Seriously, don't expose your JSP pages.
You're doing the right thing hiding them inside WEB-INF so they can't be accessed directly.
Don't mess that up now by exposing them as pretend servlets.
There is no need to include the JSP in that web.xml at all.
Just forward to "/WEB-INF/yourjsp.jsp" from your servlet when it's done whatever processing is needed.
I am just going through the article but in my index page I am addressing the jsp directly only right?
Bear Bibeault wrote:You didn't read the article I pointed to, did you? You never address a JSP directly -- always go through a controller.