wood burning stoves*
The moose likes Servlets and the fly likes Getting a Parameter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Getting a Parameter" Watch "Getting a Parameter" New topic

Getting a Parameter

Joey Alencar
Ranch Hand

Joined: Jun 26, 2001
Posts: 43
I'd like to know how can I get a Parameter from a "multipart/form-data" form.
Mayer Salzer

Joined: Apr 01, 2002
Posts: 20
I've written an abstract class that (among other things) retreives multipart/form-data parameters. I've posted the source here "http://www.gvaldig.addr.com/public/Servlet.java". Take a look at the code specifically these 3 methods.
1) getMultipartData (as well as comments at beginning of method)
2) getMultipartParameter
3) getMultipartFilename
P.S. You won't be able to compile it, since you need a bunch of other classes, however it should be enough enough to get you going. If you need more help with it, let me know (zsalzer@yahoo.com).
Joey Alencar
Ranch Hand

Joined: Jun 26, 2001
Posts: 43
Thanks swishhh, the Servlet really helped me.
I agree. Here's the link: http://aspose.com/file-tools
subject: Getting a Parameter
Similar Threads
how to get the value selected in the select tag using jsp?
jsp and javascript
passing parameter to a servlet
How to re use values getting from OGNL in jsp