This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman 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 Elasticsearch in Action this week in the Big Data 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
 
 
subject: Beans.Populate