Thanks for your reply, but is that the scenario when we use a model driven 
action classes ? 
I am directly using javabeans in my action class and have 
actionClass-validation.xml for validations. 
What do I do in such scenario? 

Dwipin Chandran
____________________________________________
Experience certainty.   IT Services
                        Business Solutions
                        Outsourcing
____________________________________________



[EMAIL PROTECTED] 
08/11/2008 04:58 PM
Please respond to
"Struts Users Mailing List" <user@struts.apache.org>


To
"Struts Users Mailing List" <user@struts.apache.org>
cc

Subject
Re: value-stack data lost when using dynamic result.






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
>
>
>

ForwardSourceID:NT0001B72E 
=====-----=====-----=====
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


Reply via email to