i have a form select.. my problem is i dont know how can i get the selected
values in the form select box.

here is my code..

   <s:select name="selectedModules" value="%{edituser.modules.{moduleId}}"
          list="modules" listKey="moduleId" listValue="moduleName" 
            multiple="true" size="7"  />

it has multiple set to true..so it should return something like a list or
array..but if i try to 
retrieved it using this code..

        List selectedModules =getSelectedModules();     
        System.out.println("selected " + selectedModules.size());

i get a null pointer exception error.. how should i do it? 

thanks in advance..


-- 
View this message in context: 
http://www.nabble.com/-S2--Form-Select-tp14659864p14659864.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]

Reply via email to