You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Xinhong Luo, NY" <XL...@fja-us.com> on 2002/07/02 16:54:25 UTC

repopulate the text field inside iterate after posting

I am experiencing a problem with struts. I used  
the textbox to collect the input for each fund. After the jsp was
redisplayed, the text field was populated as:

[Ljava.lang.String;@533a6b

I read some posts about this before and it seems on one can solve it. I
really appreciate the help if you have any ideas with this.

in jsp:

<nested:iterate id="element" property="funds">
<tr><td><bean:write name="element" property="name"/></td>
<td><html:text property="allocationString"/></td>
</tr>
</nested:iterate>


in form bean:


private Fund[] funds_;
private String[] allocationString_; 

public void setFunds();
public fund

public Fund[] getFunds()
{
  return funds_;
}

public void setFunds(Fund[] funds)
{
  funds_ = funds;
}

public String[] getAllocationString()
{
  return allocationString_;
}

public void setAllocationString(String[] allocationString)
{
  allocationString_=allocationString;
}

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>