Hey guys,
I'm using custom objects to store attributes (say a person with
first/last name, age, height). Right now I have a collection that
stores these objects, and then displays them on a JSP page for the user
to select one from the collection for further processing like so:
<s:iterator value="peopleCollection">
<li>
<a href=" <s:url action="ProcessPersonSelection">
<s:param name="firstName" value="firstName" />
<s:param name="age" value="age" />
<s:param name="height" value="height" />
</s:url>">
<s:property value="lastName" />
</a>
</li>
</s:iterator>
What this does is sets up a list of links, which display the last name
of the person object, and when clicked submits all the params specified
(firstName, age, height, lastName).
The downside is I can't use the <s:token /> tag, because it's not in
proper "form" tags. All of the <s:select> or <s:radio> tags allow
nearly the same functionality, except only 1 value can be returned,
rather than all of the values. Is there another way to get multiple
values submitted from select or radio tags?
Any help is appreciated!