Posted By:
Brian_Smith
Posted On:
Thursday, February 23, 2006 12:04 PM
I am having some issues with a specific AppServer and how it is interpreting the specification. Say I have a servlet which maps to the url /testServlet/*. All this servlet does is: response.sendRedirect("main.jsp") Now if the url that is accessing this is http://someHost.com/testServlet/page it will be redirected to http://someHost.com/testServlet/main.jsp but what would happen if the url is: http://someHost.com/testServlet/some/other/path/to/page should the container turn the relative "main.jsp" to http://someHost.com/testServlet/main.jsp or to http://someHost.com/testServlet/some/other/path/to/main.jsp Thank You
More>>
I am having some issues with a specific AppServer and how it is interpreting the specification. Say I have a servlet which maps to the url /testServlet/*. All this servlet does is:
response.sendRedirect("main.jsp")
Now if the url that is accessing this is http://someHost.com/testServlet/page
it will be redirected to http://someHost.com/testServlet/main.jsp
but what would happen if the url is:
http://someHost.com/testServlet/some/other/path/to/page
should the container turn the relative "main.jsp" to
http://someHost.com/testServlet/main.jsp
or to
http://someHost.com/testServlet/some/other/path/to/main.jsp
Thank You
<<Less