Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet not being called  RSS feed

 
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.
 
Author and ninkuma
Marshal
Posts: 66610
161
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!