Yep. Your on the right track. Having populated your form in the action, it
will be forwarded along in a request attribute (or session depending on your
mapping) to the view jsp, where you can make use of the struts html tag
library (or jstl) to render the values in the fields. Like James say, your
first stop should be to go have a look at the example app. If you have any
questions about it do feel to post them :-)

-----Original Message-----
From: James [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 16 September 2003 22:59
To: 'Struts Users Mailing List'
Subject: RE: How to fill textfields from FormBean?


Yes, take a look at how it is done in the struts-example application.

--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 16, 2003 10:58 AM
> To: [EMAIL PROTECTED]
> Subject: How to fill textfields from FormBean?
>
>
> Hello!
>
> I have made a registration JSP (name, address, zip, ....) and I want
> that the user can modify his account.
>
> So I have an action class and a form bean for the registration. Now I
> want to implement an action class which shows the registration JSP and
> fills automatically the textfields with the stored values.
> The user can
> change the values.
>
> How can I realize it? Is there a possibility to forward the values to
> the JSP?
>
> Dirk
>
>
> ---------------------------------------------------------------------
> 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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to