Solution found.

Starting Struts 1.2, contextRelative attribute is no longer used. Instead,
I had to use "module" attribute to define context root of where jsp file
is.


<forward name="success" path="/root/test.jsp" module="/" />


> Hello,
>
> I need help with struts forward with contextRelative set to false. Whan
> ran, the struts prefixes module name in front of the path before
> forwarding to a jsp page.
>
> struts-test.xml (test submodule)
>
> <action path="/test" scope="request"
>     type="com.test.common.BaseAction" validate="false">
>     <forward name="success" path="/root/test.jsp" contextRelative="false"
> />
> </action>
>
> When /test.do is ran, the /test/root/test.jsp is accessed instead of
> /root/test.jsp. With contextRelative set to "false", I am expecting the
> file to be found in /root/test.jsp. The tiles definitions are correctly
> resolved.
>
> Thanks,
> Scott
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

Reply via email to