• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet calls redefines base of path

 
Nigel King
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My website links and menus all call a controlling servlet which decides what action to take and then uses a RequestDispatcher to a JSP page.
My directory structure is
/style
/images
/WEB-INF/classes
However, once the dispatch is made, the path to my css and images is no longer correct ie. there is no /images directory under the /classes directory.
I'm sure this is simple - a configuration of servlets in web.xml - but I can't make it work.
Can anyone point me in the right direction?
 
Nigel King
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please ignore this message. I have solved my problem.
I added the lines
<Context path="" docBase="MyWebApp" debug="0"
reloadable="true">
</Context>
into the server.xml file and now my site behaves correctly.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!