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=16603>.
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=16603

internalModuleRelativeForward() does'nt  treat module-relative paths as defined by 
forwardPattern.

           Summary: internalModuleRelativeForward() does'nt  treat module-
                    relative paths as defined by forwardPattern.
           Product: Struts
           Version: Nightly Build
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Controller
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In processForwardConfig(), the targeted URI is calculated by the 
RequestUtils.forwardURI() witch take care of the forwardPattern attribute if it 
is present. But in the internalModuleRelativeForward() methode one only do 
module.prefix+path to calculate the definitive URI.

For exemple in a config file of a 'logon' module i define this :

<action path="/LogonEntree" forward="/pages/logon.jsp" unknown="true" />

And this :

<controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"  
forwardPattern="/WEB-INF/modules$M$P" inputForward="true" />

I get an error the requestDispatcher  can't find the computed URI witch is :

.../TheWebApp/logon/pages/logon.jsp

rather than what I'm wanting : 

.../TheWebApp/WEB-INF/modules/logon/pages/logon.jsp

Maybe I missunderstood the way forwardPattern are applied as I'm new to Struts. 
But in this case I can't figure out why there is two kinds of "module-shifting" 
of the paths to be forwarded.

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

Reply via email to