File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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: http://aspose.com/file-tools
 
subject: getting servlet file not available
 
Similar Threads
How to handle session in jsf??
how to stop user to acces directly inner page of a website
how to keep input when back to this page?
JSP- Servlet - File Streaming
Redirecting to Login Page