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 servlet wont work Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "servlet wont work" Watch "servlet wont work" New topic
Author

servlet wont work

Chris Davies
Ranch Hand

Joined: Feb 26, 2003
Posts: 110
hi

i have the following servlet which seems to compile though the command prompt displays nothing when i compile it in the tomcat webapps/test/WEB-INF/classes directory



here is the jsp page i'm using



i'm getting a 404 saying the /servlet/ExampServlet

description The requested resource (/servlet/ExampServlet) is not available.

and the page is trying to go to the url -

http://localhost:8080/servlet/ExampServlet

how is it going there ? is it ok to compile servlet java files in the WEB-INF/classes directory of an application ?

cheers

chris


One day all greenhorns will run free ...
maha devan
Ranch Hand

Joined: Mar 16, 2004
Posts: 50
Chris
I also had the same problem with running servlets.Go through the previous posts
"How to set conf file file" maha devan
"servlet error" maha devan

U will get all the info u want

Bye
Maha
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12269
    
    1
Read this FAQ on the use of the invoker servlet. The "/servlet/" in the url implies that the invoker servlet is required, but it is typically off by default.
Also put your ExampServlet in a package - you will be glad you did.
Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet wont work
 
Similar Threads
Servlet becomming slow
Servlet becomming slow
A href command not working
Help - How to Call "Servlet though HTML" File
whilst fooling around with SessionId and cookies...