structs中有MultiboxTag,没有multiputTag,怎么解决多个同名属性多个text put的得值及修改的问题?

04-03-29 jeff2005

在formbean中建立属性

/** customerfirstname property */

private String[] customerfirstname;

/** customerlastname property */

private String[] customerlastname;

/** customercompany property */

private String[] customercompany;

页面Tag如下:

<table>

<tr>

<td>Customer's First Name</td>

<td>

<html:text property="customerfirstname" size="26" />

</td>

</tr>

<tr>

<td>Customer's Last Name</td>

<td><html:text property="customerlastname" size="26"/></td>

</tr>

<tr>

<td>Customer's Company</td>

<td><html:text property="customercompany" size="26"/></td>

</tr>

.

.

.

<tr>

<td>Customer's First Name</td>

<td><html:text property="customerfirstname" size="26"/></td>

</tr>

<tr>

<td>Customer's Last Name</td>

<td><html:text property="customerlastname" size="26"/></td>

</tr>

<tr>

<td>Customer's Company</td>

<td><html:text property="customercompany" size="26"/></td>

</tr>

</table>

可是当页面校验出现错误,返回本页

或者从数据库中读出三属性值时

text input里显示的是

[Ljava.lang.String;@1dddba

[Ljava.lang.String;@7124af

[Ljava.lang.String;@e93999

各三个属性的地址,而不会智能地把各个值放到每个input中去。

各位有更好地解决这种同名属性多个text input的方案吗?