Peter Werno wrote:
This is how it works:

--------- struts-config.xml ----------

<struts-config>
    ...

    <global-forwards>
        <forward name="home" path="/index.jsp" redirect="false"/>
        <forward name="loginform" path="/login.jsp" redirect="false"/>
        <forward name="error500" path="/error/err500.jsp" redirect="false"/>
        <forward name="trylogin" path="/loginAction.do" redirect="false"/>
        <forward name="indexHome" contextRelative="true"
path="/index/index.do" redirect="true"/>
        .... more ....
    </global-forwards>
    ...
</struts-config>

--------- end ---------

this is how it does NOT work:

--------- index-config.xml ----------

<struts-config>
    ...
    <global-forwards>
        <forward name="indexHome" contextRelative="true" path="index.do"
redirect="true"/>
    </global-forwards>
    ...
</struts-config>

--------- end ---------

many thanks,

Peter

I think you're confused on the meaning of contextRelative. contextRelative means to interpret the path relative to the web application root, not the module root. So in your second example, the forward named 'indexHome' will attempt to find /index.do, not /index/index.do as the first example.


-- Jeff

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

Reply via email to