Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Beans.Populate

 
Hari adya
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a good debugger of errors, but first time in years, unable to debug this... please help

 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !!
 
Hari adya
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Hari adya
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
drat,...

I missed this

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

thanks anyway
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic