Re: [Actionframework-users] arrays
Status: Inactive
Brought to you by:
ptoman
From: Petr T. <Pet...@pi...> - 2002-09-10 20:06:41
|
> hi, i would like te send to a method all the vars i have in a form. > the inputs of the form are named as following: news[0][day], > news[0][month]... so i added the following tag to my actionservlet > config file: <action name = "/record" method = "record(String[][] > news)"> but with no result. if i do it using just string vars it > works with no problem. How do you create multidimensional parameters in HTML? AFAIK, only one-dimensional arrays are supported. If you have in the HTML: <INPUT TYPE="Hidden" NAME="news" VALUE="1"> <INPUT TYPE="Hidden" NAME="news" VALUE="2"> <INPUT TYPE="Hidden" NAME="news" VALUE="3"> then you can use: <action name="/record" method="record(String[] news)"/> Petr -- [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 ] |