All,

I wrote the attached FindForwardIndexed class (inspired by scaffold
FindForward) which I find useful when I have a list of indexed properties
and an action that can be take in each row.   The class forwards based on
the indexed property submitted, and appends the index to the forward path
(will append ${value} if path ends in "=" otherwise will append
"index=${value}", where ${value} is the index.

mappings look like so:
<forward name="view[].x" path="/workingScenarioView.do"/>
                        <forward name="modify[].x" path="/workingScenarioModify.do"/>
                        <forward name="delete[].x" path="/deleteScenario.do?myindex="/>
                        <forward name="approve" path="/approvePlan.do"/>
                        <forward name="publish" path="/publishPlan.do"/>

The test case attached is illustrative, but does not work properly because I
have not gotten the
mock objects to work properly.

Enjoy.

-Kevin

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

Reply via email to