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
posted 6 years ago
The request URL must match the url-pattern of the servlet mapping of the servlet in question in the web.xml.