wood burning stoves*
The moose likes Servlets and the fly likes accessing servlets 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 » Java » Servlets
Bookmark "accessing servlets " Watch "accessing servlets " New topic
Author

accessing servlets

madhur jain
Ranch Hand

Joined: Aug 27, 2002
Posts: 49
hi!
i just passed prog. cert. and i am a beginner in servlets.
my servlets are in
C:\WINDOWS\Desktop\jsdk2.1\webpages\WEB-INF\servlets
and i use
http:/localhost:8080/servlet/MYServletName
in the browser to access the servlets
but if i want to place my servlets in another dir. say dir1 in servlets directory ie in
C:\WINDOWS\Desktop\jsdk2.1\webpages\WEB-INF\servlets\dir1

the on accessing the servlet by
http:/localhost:8080/servlet/dir1/MYServletName
gives error

can someone help what should i do.
madhur
Napa Sreedhar
Ranch Hand

Joined: Jan 29, 2002
Posts: 62
Check whether the servlet can be located from the classpath of the application server
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: accessing servlets