dognobbler
Programmer
I have a servlet doLogin which forwards to a JSP using the following code
RequestDispatcher rd2 = request.getRequestDispatcher( "/matchScore2.jsp" );
rd2.forward( request, response );
The location of the servlet is
webapps/UK/WEB-INF/classes/doLogin
and the location of the JPS is
webapps/UK/matchScore2.jsp
The problem is that all the links on matchScore2.jsp appear relative to the directory
webapps/UK/WEB-INF/classes/
when they should be relative to
webapps/UK/
Can anyone see what I am doing wrong?
Thanks
Andy
RequestDispatcher rd2 = request.getRequestDispatcher( "/matchScore2.jsp" );
rd2.forward( request, response );
The location of the servlet is
webapps/UK/WEB-INF/classes/doLogin
and the location of the JPS is
webapps/UK/matchScore2.jsp
The problem is that all the links on matchScore2.jsp appear relative to the directory
webapps/UK/WEB-INF/classes/
when they should be relative to
webapps/UK/
Can anyone see what I am doing wrong?
Thanks
Andy