struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sri Sankaran" <Sri.Sanka...@sas.com>
Subject RE: retention of the ActionForm values for display only fields
Date Fri, 11 Jul 2003 14:51:13 GMT
If you really want to stay with request scope, a (hacky) way around it would be to have the
names as hidden form fields as well.

Sri

-----Original Message-----
From: Sri Sankaran [mailto:Sri.Sankaran@sas.com] 
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:Supriya.Brahme@express-scripts.com] 
Sent: Friday, July 11, 2003 10:23 AM
To: struts-user@jakarta.apache.org
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message