• 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: 66730
167
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.
 
You’ll find me in my office. I’ll probably be drinking. And reading this tiny ad.
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!