Thanks Gin.

-----Original Message-----
From: Chen, Gin [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 12:29 PM
To: 'Struts Users Mailing List'
Subject: RE: retention of the ActionForm values for display only fields


Just use html:hidden property="blah" write="true"
that will take care of retaining them as well as display them for you so
that you dont need another html:write -Tim

-----Original Message-----
From: Brahme, Supriya (ENJ) [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 10:56 AM
To: Struts Users Mailing List
Subject: RE: retention of the ActionForm values for display only fields


Thanks Srini.That means the ActionForm has to be in session scope to
achieve this. Right?

-----Original Message-----
From: Sri Sankaran [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:49 AM
To: Struts Users Mailing List
Subject: RE: retention of the ActionForm values for display only fields


Since the name fields are non-form fields they are not submitted and
hence are not part of the request.  Therefore, when validation fails,
there is nothing to send back to the browser.

Sri

-----Original Message-----
From: Brahme, Supriya (ENJ) [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:23 AM
To: [EMAIL PROTECTED]
Subject: retention of the ActionForm values for display only fields

Hi all
I have a scenario where I am displaying user profile details on the page
using UserProfileForm which extends ValidateForm. I am displaying all
the personal details like address, phone, credit card etc as editable
fields using html: text tag. While only user name appears as display
only field. The problem comes when user submits erroneous data & I have
server side validation displaying error message (javascript is turned
off here). When this happens, I can see that , if user has modified 6 of
the form text fields , assuming 1 is wrong, all are retained on the
form. i.e including erroneous value. But I lose the name. I see
blanks(null) for the first name & last name fields since they are
non-text fields, ie. used html:write tag. Can anyone explain the way to
retain these values without changing scope to session? I have this
ActionForm in request scope & it works fine except this issue. Thanks
Supriya
******* Confidentiality Notice *******
This email, its electronic document attachments, and the contents of its
website linkages may contain confidential health information.  This
information is intended solely for use by the individual or entity to
whom it is addressed.  If you have received this information in error,
please notify the sender immediately and arrange for the prompt
destruction of the material and any accompanying attachments.



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