Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accessing servlets

 
madhur jain
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check whether the servlet can be located from the classpath of the application server
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic