With the O'Reilly multipart package you pass the "ServletRequest" object
to the "MultipartRequest" object and then use the "MultipartRequest"
object to do gets on your incoming params.
// ENCTYPE='multipart/form-data'
// Must have MultipartRequest to retrieve form data.
// Save off the files that were supplied (ie., attachments)
// pass request objects to "multi".
MultipartRequest multi = null;
try
{
// Defined in servlet class definition.
// private static final int MAX_ATTACH_SIZE = 15 * 1024 *
1024;
multi = new MultipartRequest(req, MAX_ATTACH_SIZE);
}
catch (IOException e)
{
//
}
String aParam = multi.getParameter("whatever");
- Doug Turner
Web Developer, Real Estate Technology
email: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
Tel. 913-315-4439
�
-----Original Message-----
From: pdw [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 12:02 PM
To: jrun-talk
Cc: pdw
Subject: Re: Servlet request object and multipart/form-data
> I'm reading values in from a form submission, and if the form is
encoded
> with "multipart/form-data", I can't seem to use the getParameter
method
> to retrieve any values. Am I being stupid, or is this in fact true?
> What's the way to work with multipart forms??
check out the com.oreilly.servlet.multipart package which contains some
classes for working with multipart forms. sorry I don't have a link but
a
search should find it for you.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists