• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet not being called  RSS feed

 
sunaina agarwal
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my Login.jsp



This is my SignupServlet



And this is my web.xml mapping



Login.jsp is in Webcontent/WEB-INF/WebPages/Login.jsp
and SignupServlet in JavaResources/src/com.affiliate.servlet/SignupServlet
but my Login is not redirecting to the SignupServlet.And i have doubt on my href and form action. Please help me in this regard.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sunaina agarwal wrote:but my Login is not redirecting to the SignupServlet

Submitting a form is not "redirecting", so that was the wrong word.

Your form action wrong. It needs to match the servlet mapping, and it needs to be server-relative. Please see the ServletsFaq for an entry on servlet problems.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!