You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Andreas Schoernig <a....@winwalk.com> on 2004/01/07 15:09:24 UTC

array-input form ?!

Hi all, 

maybe someone can help me, I found no informations so long at google (maybe
wrong search-words).

My problem is: 

I have a html-site where you can enter your first and lastname and a few
more datas to order informations. If you want set more names to the list you
can click on a button and there are one more first-and lastname-fields. 

(this clicks are possible as many as the configuration-counter is set (for
example 4)) the fields i set at the html-code with 
   <tr id="id$val" style="visibility:hidden">
and then with javascript i set the visibility to visible.... )

the complete code at a for-each-clause at the code is is:



   <tr id="id$val" style="visibility:hidden">
      <td><input name="firstName" type="text" value=""  style="width:95%
;height:20px;"></td>
      <td><input name="lastName" type="text" value=""  style="width:95%;
height:20px;"></td>
      <td><input name="data" type="text" value=""  style="width:95%;
height:20px;"></td>
      <td colspan="2"><input id="td$val" name="data2" type="text" value=""
style="width:95%; height:20px;"></td>
   </tr>

$val is the counter (use velocity for the view)...


i have a bean where firstname, lastname, data and data2 is in... but how can
I get a bean-array for each entry ?

hope you understand my question and can help me... (or is this not possible
? )

thanks...


bye, 

Andi




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org