You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by goodprogram <go...@yahoo.com> on 2007/06/13 21:37:20 UTC
avoiding resetting of values
Hi
I have 7 textbox fields, when i enter the values for all those and submit
the form, the clientside and server side validations are working well,
but the problem is, it resets all textbox values to be empty, and
forwarding to the same input page,
How can i avoid resetting of values and display the correspondig values in
textboxes?
Any help is appreciated .
Thanks,
RR
--
View this message in context: http://www.nabble.com/avoiding-resetting-of-values-tf3917285.html#a11107268
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: avoiding resetting of values
Posted by Paolo Beccari <pb...@email.it>.
----- Original Message -----
From: "goodprogram" <go...@yahoo.com>
To: <us...@struts.apache.org>
Sent: Wednesday, June 13, 2007 9:37 PM
Subject: avoiding resetting of values
>
> Hi
>
> I have 7 textbox fields, when i enter the values for all those and submit
> the form, the clientside and server side validations are working well,
> but the problem is, it resets all textbox values to be empty, and
> forwarding to the same input page,
>
> How can i avoid resetting of values and display the correspondig values in
> textboxes?
>
> Any help is appreciated .
>
> Thanks,
> RR
I'm a S2 newbie, but try this:
<s:textfield name="name" value="%{name}" />
it should invoke the getName() method of related Action, and retrieve the
value.
P.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: avoiding resetting of values
Posted by Laurie Harper <la...@holoweb.net>.
goodprogram wrote:
> Hi
>
> I have 7 textbox fields, when i enter the values for all those and submit
> the form, the clientside and server side validations are working well,
> but the problem is, it resets all textbox values to be empty, and
> forwarding to the same input page,
>
> How can i avoid resetting of values and display the correspondig values in
> textboxes?
In order for anyone to help, ou'll need to supply more information,
including what version of Struts you're using, relevant configuration
and code snippets, etc. There's not enough here to offer any diagnosis.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org