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?
posted 11 years ago
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.