Re: html:hidden as a collection not String

2008-02-08 Thread Laurie Harper

Shanna7463 wrote:

Is it possible to assign a collection to a html:hidden component, rather than
a string?  
Basically my webapp allows the user to select different options for access

control.  I would like to add these selections to a collection and pass that
to my Action class. 


A hidden input will submit a single string value. To submit a set of 
values you either need to use multiple hidden inputs (i.e. one per 
collection entry) or manually marshal the collection into a single 
string (e.g. a comma separated list of values) the unmarshal it again 
when it's submitted. Multiple hidden inputs is probably the 
easier/cleaner approach.


L.


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



html:hidden as a collection not String

2008-02-06 Thread Shanna7463

Is it possible to assign a collection to a html:hidden component, rather than
a string?  
Basically my webapp allows the user to select different options for access
control.  I would like to add these selections to a collection and pass that
to my Action class. 

Thanks inadvance!!

-- Shanna --
-- 
View this message in context: 
http://www.nabble.com/html%3Ahidden-as-a-collection-not-String-tp15312178p15312178.html
Sent from the Struts - User mailing list archive at Nabble.com.


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