This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ways of getting [Servlet Error]- [BeanUtils.populate] exception
 
Similar Threads
How to name html:form tag in sturts
html select onchange
using struts html:form without action attribute
ServletException BeanUtils populate
action's "attibute" and "name" property......