[S2] Form Select

2008-01-06 Thread carmi_cd
=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 Str

Re: [S2] Form Select

2008-01-07 Thread Ted Husted
Hmmm, did you try selectedModules as an array of String? HTH, Ted * On Jan 7, 2008 1:58 AM, carmi_cd <[EMAIL PROTECTED]> wrote: > > 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.. >

Re: [S2] Form Select

2008-01-07 Thread carmi_cd
>> >> thanks in advance.. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-S2--Form-Select-tp14659864p14680961.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]

Re: [S2] Form Select

2008-01-08 Thread Laurie Harper
What do you getter and setter methods for the selectedModules property look like? Remember, you need both for data to be passed in both directions. L. carmi_cd wrote: hi ted..thanks.. i tried to retrieved selectedModules as an array of String.. but it was not able to get the values.. here is m

Re: [S2] Form Select

2008-01-08 Thread carmi_cd
ry 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? >>>> >>>> than

Re: [S2] Form Select

2008-01-09 Thread Laurie Harper
They need to be public for Struts to be able to call them... ;-) carmi_cd wrote: here is my getter and setter method for selectedModules private String[] getSelectedModules() { return selectedModules; } private void setSelectedModules(String[] value) { selectedM

Re: [S2] Form Select

2008-01-09 Thread carmi_cd
if i try to >>>>>> retrieved it using this code.. >>>>>> >>>>>> List selectedModules =getSelectedModules(); >>>>>> System.out.println("selected " + selectedModules.size()); >>>>>>