| Author |
passing multiple values through hidden variables
|
sandy gupta
Ranch Hand
Joined: Jan 30, 2001
Posts: 228
|
|
Hi I am trying to pass multiple values through a hidden variable on a form post but am not getting the values in my form bean. What am i doing wrong? jsp: <html:hidden property="svalues" value="abc, def"/> bean: private String []svalues = null; public String []getSvalues(){ return svalues; } public void setSvalues(String []values){ svalues = values; } TIA S
|
Adios
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12324
|
|
The value of form parameter such as svalues is always going to be a String, not a String[]. You are going to have to parse that String yourself. Bill
|
Java Resources at www.wbrogden.com
|
 |
 |
|
|
subject: passing multiple values through hidden variables
|
|
|