You could probably think of putting them as a session/request attribute and access it from action class!

Nitesh
----- Original Message ----- From: "Phani" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, June 30, 2005 10:08 PM
Subject: RE: Passing collection Objects from html form to Action class


Tell me which is performance efficient & desired way:

Putting the form in session or making a trip to the
database..

assuming we have collection of 50 - 60 records..

Phani..

--- Mark Benussi <[EMAIL PROTECTED]> 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]



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




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




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

Reply via email to