Re: Struts2: Getting multiple values from tag

2008-11-11 Thread Mead Lai
Where the tag will render to HTML, whatever you do in struts2-Tag, the HTML just only pass the value in . so, it seems no good idea. I do it like this: "name,anotherValue,id" is the value you need. join the string value which you wanne get, and separator them with "separatorString", then put

Struts2: Getting multiple values from tag

2008-11-11 Thread Peterson, Ryan
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: