• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet Path

 
ford Darcy Jr
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to call a servlet file. The path is supposed to be http://localhost.../dir1/dir2/servlet1. But my servlet will work only if I call it thru: http://localhost.../dir2/servlet1. When I call it through dir1 its saying file not available. I tried making the changes in the web.xml file. But its still not working...can u pls help.

Thanks,
 
ford Darcy Jr
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Forgot to mention...the path works fine for all html files...but not with servlet files. Can you please help.

Thanks,
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Need to see the servlet entry in your web.xml.
Also where your servlet resides on your file system?
 
ford Darcy Jr
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When I make changes to the web.xml file with the servlet path...its not getting updated in the web xml. Any ideas where I am going wrong ?

Thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to restart your app for changes in web.xml to work.

If you're still having problems, post your servlet mapping entry from your web.xml file.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!