• Post Reply Bookmark Topic Watch Topic
  • New Topic

servlet wont work

 
Chris Davies
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
maha devan
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!