File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes  getting servlet file not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark " getting servlet file not available" Watch " getting servlet file not available" New topic

getting servlet file not available

vinoth sathiyamoorthy
Ranch Hand

Joined: Sep 30, 2008
Posts: 31
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

Joined: Oct 08, 2006
Posts: 2458
The request URL must match the url-pattern of the servlet mapping of the servlet in question in the web.xml.
I agree. Here's the link:
subject: getting servlet file not available
It's not a secret anymore!