Hello,
 
I have a problem with how to get values from a multiselect list into a
validationForm. I have a class:
 
public class Skytter extends ArrayList {
  private String navn;
  private String initialer;
....
}
 
I build up an array with the class:
 
Skytter skyttere = new Skytter();
In a loop
    Skytter skytter = new Skytter();
    setting values to skytter
    skyttere.add(skytter);
 
And then
 ...setAttribute("skyttere", skyttere).
 
In my jsp-page I show this in a listbox where I can select multiple
elements.
 
<td valign="top">
    <html:select name='skyttere' property='navn' multiple='true' size="30">
    <html:options collection='skyttere' property='initialer'
labelProperty='navn' />
    </html:select>
</td>
 
How can I get the selected values into the validationform? Do I need to get
the address-string and loop thru all elements to extract each element
myself?
 
The address string sent: ...../rapporterAction.do?navn=HK++
<http://ppcterje/drwv/struts/rapporterAction.do?navn=HK++&navn=IH++&navn=JOS
+&navn=KBS+&navn=MA++&navn=PH++&navn=RO++&navn=RK>
&navn=IH++&navn=JOS+&navn=KBS+&navn=MA++&navn=PH++&navn=RO++&navn=RK++......
......
 
- Terje
 

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

Reply via email to