aspose file tools*
The moose likes Struts and the fly likes Ways of getting [Servlet Error]- [BeanUtils.populate] exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Ways of getting [Servlet Error]- [BeanUtils.populate] exception" Watch "Ways of getting [Servlet Error]- [BeanUtils.populate] exception" New topic
Author

Ways of getting [Servlet Error]- [BeanUtils.populate] exception

Akshay Singhvi
Ranch Hand

Joined: Nov 08, 2005
Posts: 93
Hello Ranchers,
What are the possible ways of getting

[Servlet Error]- [BeanUtils.populate]: java.lang.IllegalArgumentException: No bean specified.

I know 2 reasons.
First, this error usually occurs when you have specified a form name that does not exist in your <html: form> tag. For example, you specified <html: form action="/myAction" name="myForm" /> and 'myForm' is not the name of a form associated with myAction in the struts-config file

Secondly, in your form-bean you have some value object as an attribute with the setter and getter. One must initialize that value object at the time of loading of the form bean.

is there any other reason for getting this error.


Regards,<br />Akshay Singhvi<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (86%)
Akshay Singhvi
Ranch Hand

Joined: Nov 08, 2005
Posts: 93
Any reply ranchers....
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
See question 10 of the JavaRanch Struts FAQ


Merrill
Consultant, Sima Solutions
Akshay Singhvi
Ranch Hand

Joined: Nov 08, 2005
Posts: 93
Hi,
I don't think that is relevant to problem posted by me. Can some one put some light on this.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Ways of getting [Servlet Error]- [BeanUtils.populate] exception
 
Similar Threads
action's "attibute" and "name" property......
html select onchange
ServletException BeanUtils populate
using struts html:form without action attribute
How to name html:form tag in sturts