You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by rmanchu <rm...@gmail.com> on 2005/04/29 16:06:24 UTC

tiles - mapping.getInput()

hi

menuAction and formAction are tiles definitions i've defined. both works 
fine - i can see from the first action mapping

         <action path="/menuaction"
                 type="rmanchu.infoportal.actions.MenuAction">

             <forward name="indexes" path="menuAction" />
             <forward name="forms"   path="formAction" />

         </action>

what i want to do here is that, if form validation fails, it should 
forward to the tiles definition formAction. (though not shown, a 
success, failure would all (supposedly) go the that same tiles-def)

         <action path="/simpledispatch/*/*"
                 type="rmanchu.infoportal.actions.SimpleDispatchAction"
                 parameter="method"
                 name="{1}_{2}_Form"
                 validate="true"
                 scope="request"
                 input="formAction" />

1) is this valid with tiles? ie. upon form validation failing, would 
tiles look up the tile-def from what is entered in the "input" attribute 
and forward to that?

2) within the form, is there a way to forward to "input" value? i 
supposed i can define a <forward> with path="formAction"; just wanting 
to know.


riyaz


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org