• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting servlet file not available

 
vinoth sathiyamoorthy
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Friends

The login is jsp file. When submit button clicked a servlet is called and it should be redirect according to the parameter passed from the login page. i use tomcat 6.0 server.
if value is correct it should open another page otherwise it remain in the same page(login).

We found the following while executing:

The requested resource (/PTS/servlet/login) is not available.

We having the jsp and servlets in separate folders. like
Locations of the files:

JSP : PTS/Login.jsp
method : post
action : /PTS/servlet/login

SERVLET : PTS/web-inf/classes/login.class


Thanks in advance
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The request URL must match the url-pattern of the servlet mapping of the servlet in question in the web.xml.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic