struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shirishchandra.sakh...@ubs.com
Subject RE: setting form attributes within jsp
Date Thu, 05 Dec 2002 16:15:57 GMT
Ok.I got your problem.
But as U dont want to put the collection in session , the only way out is to 
get it back from model and populate it in the form before sending it to jsp.
I think in such case if u dont want to keep the list in session but repopulate 
it on validation error(Like a country list on a user input form..)you can 
forward to another action in case of error which will repopulate the form with 
the collection.and then forward it back to the same jsp.

We have pretty much similar functionality.And u can even have a generic action 
class which will just populate the forms in case of errors and send them back 
to jsps.

regards,
Shirish

-----Original Message-----
From: meissa.Sakho [mailto:meissa.Sakho@bpam.fr]
Sent: Thursday, December 05, 2002 4:56 PM
To: struts-user; meissa.Sakho
Subject: setting form attributes within jsp


Hi all,

I would like to set some of my form attributes within the jsp so that
to be able to get it back when the form validation fails.
the conserned attribute is a collection and I don't want to put in in the
session.

I've tried the jsp setProperty tag in vain.

the attributes have getters and setters method in the ActionForm bean.

can someone help me about that

Thanks

meissa



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



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


Mime
View raw message