struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenneth Aastrøm <kenneth.aast...@cellnetwork.no>
Subject RE: Forms and Collections
Date Tue, 12 Feb 2002 15:55:42 GMT

I've sorted of the problem, I had to set the scope of the action to session (it was request)
in the struts-config file. Now I have to make sure that the Collection isn't filled multiple
times on reload though :/

Kenneth Aa.


> -----Original Message-----
> From: Arron Bates [mailto:arronb@pacific.net.au] 
> Sent: 12 February 2002 16:45
> To: Struts Users Mailing List
> Subject: Re: Forms and Collections
> 
> 
> Could it be that the reset method in the form is killing the 
> collection?... If it's displaying properly, then by all 
> rights it should be updating 
> properly back on the server.
> 
> Arron.
> 
> Kenneth Aastrøm wrote:
> 
> >Hi,
> >
> >I have an ActionForm with the usual ints and Strings, and a 
> Collection 
> >containing my own beans. After a lot of fiddling (and the latest 
> >nightly), I've now managed to display the contents of the 
> Collection in 
> >my form as textfields, using: <nested:iterate 
> >property="collectionname"> <nested:write 
> >property="bean-title"/><nested:text property="bean-value"/> 
> ></nested:iterate>
> >
> >After submitting the form, I can easily get the single-value fields 
> >from the form ... but the collection is now empty.
> >How do I go about making the form update the collection 
> after a submit (without parsing the request-object myself) ?
> >
> >Kenneth Aa.
> > 
> >
> >--
> >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