File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Cattle Drive and the fly likes ReverseServlet.java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "ReverseServlet.java" Watch "ReverseServlet.java" New topic
Author

ReverseServlet.java

Manju Jain
Ranch Hand

Joined: Feb 08, 2001
Posts: 168
The file reverse.html is in c:\orion\default-web-app
The file ReverseServlet.class is in
c:\orion\default-web-app\WEB-INF\classes
When the browser is pointed to http://localhost/reverse.html , it processes the html file but on pressing submit button , its unable to locate //localhost/servlet/ReverseServlet file.
Am I missing something?
Thanks in advance
jytsika
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
The files are in the correct places. What is the exact error message you are getting?


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Manju Jain
Ranch Hand

Joined: Feb 08, 2001
Posts: 168
Hi Marilyn,
The error is: Http 404 not found [ servlet class file ]
One more thing , I am using doPost to get the user parameter and
doGet to send back the processed information. Is it ok? If I substitute a different servlet file in form's action attribute then the server is able to find it.
Thanks,
jytsika
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
I think you have your doGet and doPost reversed. Normally people use doGet to get the original page and doPost when you press the submit button.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ReverseServlet.java