[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-user
Subject:    tiles - mapping.getInput()
From:       rmanchu <rmanchu () gmail ! com>
Date:       2005-04-29 14:06:24
Message-ID: 42723F60.4040201 () gmail ! com
[Download RAW message or body]


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic