Hi,
Here's my code (part of the servlet code, session is a valid HttpSession):
String resourceUrl="http://localhost:8080/test.html";
requestDispatcher=session.getServletContext().getRequestDispatcher(resourceUrl);
I made sure that the file exists and is available via browser. However, that line throws an exception:
>>>
java.lang.IllegalArgumentException: path must be absolute: `http://localhost:8080/test.html'
at com.caucho.server.http.Application.getRequestDispatcher(Application.java:2464)
at test.CookieMonster.service(CookieMonster.java:192)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
...
<<<
I don't know why this happens - I thought resourceUrl was an absolute path. Any suggestions on the subject would be greatly appreciated.
Thank you,
Mark