I'm totally confused you say that I need to write these methods 
public void setAlist(int index,IpAddress ip)
{
        alist.add(alist.set(index,ip));
}
public IpAddress getAlist(int index)
{
        return (IpAddress) alist.get(index);
}

instead of

public void setIpAddress(int index,IpAddress ip)
{
        alist.add(alist.set(index,ip));
}
public IpAddress getIpAddress(int index)
{
        return (IpAddress) alist.get(index);
}

int the ActionForm 

Thanks!
Sridhar


-----Original Message-----
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 11:03 AM
To: 'Struts Users Mailing List'
Subject: RE: BeanUtils.Populate exception(Indexed Properties)


> 4)Now Im able to diplay in the jsp page but when I submit 
> this page its throwing 
> javax.servlet.ServletException: BeanUtils.populate at 
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java
> :1098)  exception.

See the response I made a couple of hours ago on this same issue. I just
came through one of these. The problem in my case, and probably in yours, is
that when Struts tries to populate your form bean on submission, it calls
the indexed getter for alist. It expects to get a bean of type
"com.register.struts.account.IpAddress" . In my case, I had created an array
of the proper type and length, and was returning an element of this array.
But my "reset" method did not assign anything to the elements of the array,
so I was returning nulls. Struts reacted to the null by throwing the "No
bean specified" error.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to