Main Topics
Browse All TopicsI had a JSP with a form that DID use "method=POST" and DID NOT use "enctype=multipart/form-da
I figured out how to use com.oreilly.servlet in a simple form that DID use "enctype=multipart/form-da
But now I have tried to combine the two forms.
When I add "enctype=multipart/form-da
1.) I need to use "method=post" because there is too much data to include in a URL for the get method
2.) Someone said that with "enctype=multipart/form-da
3.) I would really like to use the com.oreilly.servlet package since I already got it to work and it is so simple.
So how can I pull all of the form data out of the form using POST and "enctype=multipart/form-da
Thanks in Advance,
MD
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
why don't u use jakarta's upload component??
it is much easier than oreilly component
http://jakarta.apache.org/
may be helpful:
http://www.jguru.com/faq/v
There are also other solutions which might be helpful in general. I have also listed the advantages of each.
Problem: javax.servlet.HttpServletR
Solutions:
Solution A: (Advantage: Free Distribution & Widely used)
1. Download one of the versions of UploadFile from http://jakarta.apache.org/
ns/fileupload/
2. Invoke parseRequest(request) on org.apache.commons.fileupl
ase which returns list of org.apache.commons.fileupl
3. Invoke isFormField() on each of the FileItem objects. This determines whe
ther the file item is a form paramater or stream of uploaded file.
4. Invoke getFieldName() to get parameter name and getString() to get parame
ter value on FileItem if it's a form parameter. Invoke write(java.io.File) o
n FileItem to save the uploaded file stream to a file if the FileItem is not
a form parameter.
Solution B (Advantage: Easy to use)
1. Download http://www.servlets.com/co
2. Invoke getParameters() on com.oreilly.servlet.Multip
Solution C:
1. Download http://users.boone.net/wbr
2. Invoke getParameter on
com.bigfoot.bugar.servlet.
Solution D (Restricted to those appliaction that use this framework):
Use Struts. Struts 1.1 handles this automatically.
Business Accounts
Answer for Membership
by: mderbinPosted on 2004-08-12 at 14:41:19ID: 11788681
Mr. Objects suggests that oReilly has an "implementation": s/index.ht ml
Comment from objects
this includes an implementation:
http://www.servlets.com/co
Does this mean that the oReilly package has a way of decoding the multipart POST?
I like oReilly.servlet, but there's not a lot of documentation to go along with it.
How can I use it to decode the form components?