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 Beans.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 "Beans.Populate" Watch "Beans.Populate" New topic
Author

Beans.Populate

Hari adya
Greenhorn

Joined: Aug 21, 2009
Posts: 10
I am a good debugger of errors, but first time in years, unable to debug this... please help

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Not sure, but check the field named "pic" in RegistrationActionForm for the valid data type. Its seems like your assigning a wrong data to the "pic" property !!


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Hari adya
Greenhorn

Joined: Aug 21, 2009
Posts: 10
triied all that...... there are the getter and setter methods.....

see, there is a JSP, has an input type as FILE
ActionForm contains FormFile getter and setter method
ActionClass uses getPic() method to get the properties of the file.......

If you want, ill paste the code
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Have you googled:
FormFile in struts + java.lang.IllegalArgumentException
Hari adya
Greenhorn

Joined: Aug 21, 2009
Posts: 10
drat,...

I missed this

method="post" enctype="multipart/form-data"

thanks anyway
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

You're welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Beans.Populate
 
Similar Threads
file uploading error
problem in html:image
ServletException: BeanUtils.populate
Problem with Refresh + when doing refresh, not invoking action
IndexOutOfBounds in BeanUtils.Populate()