struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graff" <ph...@mindspring.com>
Subject Re: Pre-populating ActionForms
Date Sat, 28 Sep 2002 15:35:36 GMT
Override the 'reset' method of the ActionForm descendant, set your initial
values in there, then (most likely) when you want to reference the page,
reference the .do that would forward you out to that page.

Hope that helps.


"Mohan Radhakrishnan" <MohanR@hclcomnet.co.in> wrote in message
news:341F8F7FCD8AD5118FD300306E06BB6503461B66@HO-MS1...
> Hi,
>     Pre-population of ActionForms seems to be tricky. How do you populate
> ActionForms and then take the user selection from them? Let's say I want
to
> show some HTML options. The user selects some values. The selected values
> should go back into the ActionForm. Is this so difficult that I have to
use
> JSTL(Normal java beans) for this ?
>    The archives advise against pre-populating ActionForms because Struts
has
> to create them. Are there tag library examples anywhere ? Tag libraries
> really make the Struts learning curve rather steep.
> bye,
> Mohan





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