struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Re: Passing collection Objects from html form to Action class
Date Thu, 30 Jun 2005 18:29:49 GMT
Huh? All you have to do is render the collection as a set of hidden fields 
on the form and treat the data the same way as the string value.

L.

Mark Benussi wrote:

> Sadly you cannot unless you make the scope of the form session.
> 
> I find it limiting to say the least!
> 
> 
> 
> -----Original Message-----
> From: Phani [mailto:phanidhar_j@yahoo.com] 
> Sent: 30 June 2005 16:14
> To: Struts Users Mailing List
> Subject: Passing collection Objects from html form to Action class
> 
> I have a Collection Object in my JSP which I am able
> to display using display Tag.
> 
> I want to render those collection objects when I
> submit my html form, so that I can retrieve them in my
> Action class as form property.
> 
> If it is a string, I can render it as hidden field..
> 
> <input type="hidden" name="name"
> value="<%=myForm.getName()%>"/>
> 
> And in the Action class I can just say, 
> 
> String name = myForm.getName();
> 
> How can I achieve the same thing for a collection
> object.
> 
> Thanks,
> Phani.
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org


-- 
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message