aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Consider Paul's rocket mass heater.
 
subject: Beans.Populate
 
Similar Threads
Problem with Refresh + when doing refresh, not invoking action
file uploading error
problem in html:image
IndexOutOfBounds in BeanUtils.Populate()
ServletException: BeanUtils.populate