This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I was working on a Web App project in NetBeans and I decided to move the location of my JSPs. I moved each JSP and remapped all of the links, however, it cannot invoke servlets even though the web.xml is correctly configured.
Is this a bug in Netbeans? I've tried changing web servers from tomcat to glassfish and same result.
I've attached the code for my servlet, the web.xml and link in jsp page. Basically, I'm trying to simply forward the user to another jsp page through a servlet. Please let me know any ideas or suggestions. Thanks, in advance.
Here is the link I'm using in my JSP to invoke the NewPoam servlet:
<a href='NewPoam'>New POAM</a>
Thanks for the response. I thought anytime I create a servlet mapping in the web.xml file, I no longer need to add the context path, just simply name the servlet to match what is in the web.xml. Guess I was wrong as a newbie...
I added the 'context path/Servlet-name' and it works.