T
Travis Melhiser
A vendors application is using ServletContext.getResource() to verify
that a URI is servicable by the webapp.
ie:
if (theServletContext.getResource("/TheApp/aStrutsAction.do") == null)
{
writeSomeErrorMessagesToTheLog();
} else {
workWithTheURI();
}
The catch is that this works under WebLogic 8.1sp2.
When this is run under Tomcat 5.0.28, the Struts action is not
returned. It appears that the getResource() call is looking for
physical files rather than including servlet mappings.
Is there a way to configure Tomcat so that it behaves like WebLogic?
(looking both at files deployed in the war, and at servlet mappings)
Thank you,
Travis Melhiser
that a URI is servicable by the webapp.
ie:
if (theServletContext.getResource("/TheApp/aStrutsAction.do") == null)
{
writeSomeErrorMessagesToTheLog();
} else {
workWithTheURI();
}
The catch is that this works under WebLogic 8.1sp2.
When this is run under Tomcat 5.0.28, the Struts action is not
returned. It appears that the getResource() call is looking for
physical files rather than including servlet mappings.
Is there a way to configure Tomcat so that it behaves like WebLogic?
(looking both at files deployed in the war, and at servlet mappings)
Thank you,
Travis Melhiser