You could use a reset button
<input type="reset" value="Label for reset button" />

Chaudhary, Harsh wrote:
Yea, that's what I was thinking too. I was just wondering if Struts (or
some other API) has a built-in caching mechanism. Thanks though,
Harsh.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Paul Benedict
Sent: Tuesday, April 24, 2007 4:55 PM
To: Struts Users Mailing List
Subject: Re: Reset struts form values: Struts 1.3


Chaudhary, Harsh <[EMAIL PROTECTED]> wrote:
Hi,

I am using Struts 1.3. We have several struts forms which are
pre-populated from a database.

My questions is, if I want to provide the user with a way to reset the
form to the initial values which were populated from the database.



It sounds like you will be providing a button for this choice. If so,
then
wire it up to a Struts action which will get the values from the
database.
Or if those values are cached in application scope, just retrieve those
again.

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to