This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes BeanUtils.populate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "BeanUtils.populate" Watch "BeanUtils.populate" New topic
Author

BeanUtils.populate

Mohan Reddy
Greenhorn

Joined: Feb 10, 2006
Posts: 21
Hi
i'm developing a struts application.
I used nested:iterate in my jsp. While displaying the data there is no problem But it comes if i click on submit button after some changes done to the data displayed on the screen.. Please get me out of this problem...


Error is


javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:493)
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:428)
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:770)
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801)
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:881)
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.






Thnx in advance....


cheers<br /> <br />mohan.<br /> <br /><br />Always do what you are afraid to do...
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
This message indicates there is a problem mapping the contentes of your HTML form to the ActionForm bean you specified for this page. Make sure:

1-All property attributes of <html:xxx> tags match an attribute of your form bean, including matching case
2-Each property of your form is either a String or a boolean No java.util.Date types or other objects!

If you still can't figur it out, post the contents of your JSP and your ActionForm bean, and we'll try to help you figure it out.


Merrill
Consultant, Sima Solutions
Mohan Reddy
Greenhorn

Joined: Feb 10, 2006
Posts: 21
hi

i'm unable to post my reply


ive written < instead of lessthan symbol...

But its showing me the error while posting the page
Please help me

:-(
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: BeanUtils.populate
 
Similar Threads
array of arrays and a form
Using a DataBean Object in Struts Form bean
IllegalArgumentException : <html:select>
FileUploading in struts
Dynamic radio buttons matrix using Struts