[ajug-members] struts question (again) - form beans
david wible
davewible at hotmail.com
Wed Sep 29 10:38:43 EDT 2004
That's just it. The user has already entered the info and are re-entering
the site! We have an edit feature. So now how would I pre-populate the
form bean?? I built it server side and put it in the session which is all I
have access to with the current design.
Thanks,
dw
----- Original Message -----
From: "Scott Mitchell" <smitchelus at gmail.com>
To: "General AJUG membership forum (100-200 messages/month)"
<ajug-members at ajug.org>
Sent: Wednesday, September 29, 2004 9:51 AM
Subject: Re: [ajug-members] struts question (again) - form beans
> David, you don't put the form bean on the session/request yourself. It
> is handed to you in the execute method in the parameter called "form".
> You can cast it to the type you have declared in your struts-config
> for this action and set whatever properties you need pre-populated.
> Struts will take care of the rest.
>
>
> ----- Original Message -----
> From: David Wible <davewible at hotmail.com>
> Date: Tue, 28 Sep 2004 23:50:24 -0400
> Subject: [ajug-members] struts question (again) - form beans
> To: ajug-members at www.ajug.org, ajug-members at ajug.org
>
>
> Can I build a formbean on the server side and have its properties
> rendered in a page that posts the form type?
>
> does this question make sense? I've built a form and populated the
> properties. It was my understanding that within request or session
> scope that the bean would be picked up and written out? I'm putting
> the form bean in the session but the page does not pick up the bean
> nor the properties.
>
> Thanks in advance for your help.
>
> David
>
> _______________________________________________
> ajug-members mailing list
> ajug-members at ajug.org
> http://www.ajug.org/mailman/listinfo/ajug-members
> _______________________________________________
> ajug-members mailing list
> ajug-members at ajug.org
> http://www.ajug.org/mailman/listinfo/ajug-members
>
More information about the ajug-members
mailing list