struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aladar The Dinosaur" <ala...@telocity.com>
Subject Re: Dyna Form bean properties
Date Tue, 27 Aug 2002 01:42:44 GMT
Robin,

Yes, I'm new to struts and have not exposed to bean:write tag yet. However,
what I'm trying to accomplish is this. I have a JSP page (register.jsp) that
collects user registration info, and upon submission the dynaValidatorForm
validates the input fields and transfer control to the RegisterAction. In
the event validation fails, or in any event when the registerAction forward
the control back to the register.jsp, I would like to populated user entered
information back in the form fields (I believe through the info carried by
the "request") so that the user does not have to re-enter the information
that are already supplied. How do I assign those requested data back into
the form fields?

Thanks,
Scott


----- Original Message -----
From: "Zimmer, Robin (SSABSA)" <robinz@ssabsa.sa.gov.au>
To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
Sent: Monday, August 26, 2002 8:22 PM
Subject: RE: Dyna Form bean properties


> Scott, If I am reading you correctly I think you are not quite using the
> bean:write tag correctly.
> Try looking at http://jakarta.apache.org/struts/struts-html.html. It
sounds
> to me, what you really want is to use html:text or a similar tag.
>
> -----Original Message-----
> From: Aladar The Dinosaur [mailto:aladar@telocity.com]
> Sent: Tuesday, 27 August 2002 10:49 AM
> To: struts-user@jakarta.apache.org
> Subject: Dyna Form bean properties
>
>
> Hello,
>
> I'm looking to populate the dyna-form properties back to the form in the
> event of a validation failure. It appears that I'll have to use
<bean:write
> name='key' property='attr' /> tag in the JSP page to assign the values
back
> into the form fields, but I can't figure out what the name of the bean
name
> should be. Or, is there another way to do this? If I use plain actionForm
> this isn't a problem, since I know the name of the bean. However, this
> doesn't seem to work with dynaValidatorForm.
>
> Can someone help?
>
> Thank you,
> Scott
>
>
>
>
> --
> 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>
>
>
>



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