• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 603
  • Last Modified:

setProperty... property="*" With multipart/form-data

I've been very fustrated with this one.
Is it possible to use introsepection(<jsp:setProperty name="beanName" property="*"/>) when the calling form is enctype="multipart/form-data"?

When I try it, all my values come back as null. I need to use this enctype as my form making use of jspsmartupload to upload a file.

Thanks for your help!
0
chambers777
Asked:
chambers777
  • 2
  • 2
1 Solution
 
kennethxuCommented:
>> Is it possible to use introsepection(<jsp:setProperty name="beanName" property="*"/>) when the calling form is enctype="multipart/form-data"?

no! it's not the problem or introspection, enctype="multipart/form-data" is not natively supported by servlet/jsp. when you use this enctype, you cannot even use request.getParameter().

I believe the reason you use enctype="multipart/form-data" is because you want to upload file. try to use jspSmartUpload ( www.jspsmart.com ) or Struts ( http://jakarta.apache.org/struts )
0
 
chambers777Author Commented:
Perfect... all I needed to know. I appreciate it.
0
 
chambers777Author Commented:
Perfect... all I needed to know. I appreciate it.
0
 
kennethxuCommented:
you are welcome. are you ready to PAQ this question? let me know if you have further enquires.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now