You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/05/03 10:54:34 UTC

DO NOT REPLY [Bug 8768] New: - RequestUtils.selectApplication not working correctly for included actions

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: struts-dev@jakarta.apache.org
        ReportedBy: ian.tomey@lombardrisk.com


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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>