DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8768>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8768

RequestUtils.selectApplication not working correctly for included actions

           Summary: RequestUtils.selectApplication not working correctly for
                    included actions
           Product: Struts
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


This problem appears when you try to use sub applications with Tiles, but I am 
assuming that any pageContext.include to a sub app action will have the same 
problem.

RequestUtils.selectApplication starts with:

// Acquire the path used to compute the sub-application
String matchPath = request.getServletPath();

Needs to be: 

// Acquire the path used to compute the sub-application
String matchPath = (String) request.getAttribute
                              (RequestProcessor.INCLUDE_SERVLET_PATH);
if (matchPath == null)
    matchPath = request.getServletPath();

This is the way of determining the path inside RequestProcesor.

Cheers
Ian

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to