I have a base domain with a currentPage property on it for this sort of requirement. My action maintains this currentPage on the model which is kept populated. Remember to set an initial value on the property in case there are validation errors from the start.
Scott On Sun, Aug 10, 2008 at 11:57 PM, Dwipin C <[EMAIL PROTECTED]> wrote: > Hi, > I have this requirement to have a dynamic result dispatch. I am > accomplishing this the following way - > <action name="MyAction_*" method="{1}" > class="com.action.MyAction"> > <result name="success">${loginPage}</result> > <result name="input">${loginPage}</result> > </action> > > The page dynamically shows up, no problems there. However when > there's a validation error on this page, the framework returns a result > "input" and I guess its not able to find the value for ${loginPage} then. > My action class has the field loginPage with a getter method and thats how > it works for "success". What can I do to make the value of loginPage > available for result type "input" ? > > Thanks, > Dwipin Chandran > > > > =====-----=====-----===== > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > >