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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


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

Reply via email to