Mark Lowe wrote the following on 2/14/2006 2:32 PM:

The only other suggestion i would make if this were an issue is use
separate action mappings for each point of entry..

Actually that seems pretty clean to me. Even if he has a lot of points of entry it can't be "that" many. Or another option is to simply embed some param that gets passed when the Action is called and you can call different forwards based on that. Simply define several forwards in the config...

<action
    path="/someAction"
    name="someForm"
    type="com.WhateverAction"
    scope="request"
    parameter="dispatch">
<forward name="fromFooPage" path="/WEB-INF/jsp/someOtherPageA.jsp"/>
<forward name="fromBarPage" path="/WEB-INF/jsp/someOtherPageB.jsp"/>

Or they may even be global forwards.

In the action just look for some param like "fromPage" and key off of that for your return. (Of course a drawback is you'll need to remember to set this var on the pages that need it - of course there are ways you could simplify that even, if really necessary).



--
Rick

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

Reply via email to