RE: Servlet request object and multipart/form-data

2001-07-17 Thread Simon Evans

yes, the orielly classes are good.
http://www.servlets.com/cos/index.html

you have to make a new MultipartRequest, and then get the parameters from
it. this will only work if the form ecoding is multipart/form-data,
otherwise you get the parameters from the request.


-Original Message-
From: pdw [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 10:02 AM
To: JRun-Talk
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/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Servlet request object and multipart/form-data

2001-07-17 Thread doug . w . turner

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/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Servlet request object and multipart/form-data

2001-07-17 Thread pdw

> 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/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Servlet request object and multipart/form-data

2001-07-16 Thread Nathan Wheat


What??!  I can't upload more than 2GB?  That's next to useless - I might as
well throw the whole thing away...!   :)

But seriously, the O'Reilly Servlet package does look just right.  Thanks to
all.

Nathan Wheat
Technical Sales Consultant
Firmware Design
Phone:  0401 148 989
Email:  [EMAIL PROTECTED]
http://www.firmware.com.au

Are you a Web Developer or Designer?
Looking for an edge? If so, check out Web Design 2001
Go to the link Below to find out more & register
<http://wd2001.firmware.com.au/ft>




-Original Message-
From: Ben Groeneveld [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 17 July 2001 9:45 AM
To: JRun-Talk
Subject: Re: Servlet request object and multipart/form-data


Yes, the oreilly package is great.  The only limitation we found is the
upload size being checked with a Java int which limits the size of
uploads to 2G...  BenG.

Moore, Jim wrote:

> check out oreilly's servlet package. it contains a good multipart request
> handler class:
>
> http://www.servlets.com/cos/index.html
>
> --jim
>
> -Original Message-
> From: Nathan Wheat [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 15, 2001 10:43 PM
> To: JRun-Talk
> Subject: Servlet request object and multipart/form-data
>
>
> Hi all,
>
> 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??
>
> TIA,
>
> Nathan Wheat
> Technical Sales Consultant
> Firmware Design
> Phone:  0401 148 989
> Email:  [EMAIL PROTECTED]
> http://www.firmware.com.au
>
> Are you a Web Developer or Designer?
> Looking for an edge? If so, check out Web Design 2001
> Go to the link Below to find out more & register
> <http://wd2001.firmware.com.au/ft>
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Servlet request object and multipart/form-data

2001-07-16 Thread Ben Groeneveld

Yes, the oreilly package is great.  The only limitation we found is the 
upload size being checked with a Java int which limits the size of 
uploads to 2G...  BenG.

Moore, Jim wrote:

> check out oreilly's servlet package. it contains a good multipart request
> handler class:
> 
> http://www.servlets.com/cos/index.html
> 
> --jim
> 
> -Original Message-
> From: Nathan Wheat [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 15, 2001 10:43 PM
> To: JRun-Talk
> Subject: Servlet request object and multipart/form-data
> 
> 
> Hi all,
> 
> 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??
> 
> TIA,
> 
> Nathan Wheat
> Technical Sales Consultant
> Firmware Design
> Phone:  0401 148 989
> Email:  [EMAIL PROTECTED]
> http://www.firmware.com.au
> 
> Are you a Web Developer or Designer?
> Looking for an edge? If so, check out Web Design 2001
> Go to the link Below to find out more & register
> <http://wd2001.firmware.com.au/ft>
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Servlet request object and multipart/form-data

2001-07-16 Thread McDowell, Mark

There's also a free component called jspSmartUpload from
http://www.jspsmart.com which works, too.

Mark

-Original Message-
From: Moore, Jim [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 9:33 AM
To: JRun-Talk
Subject: RE: Servlet request object and multipart/form-data


check out oreilly's servlet package. it contains a good multipart request
handler class:

http://www.servlets.com/cos/index.html

--jim

-Original Message-
From: Nathan Wheat [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 15, 2001 10:43 PM
To: JRun-Talk
Subject: Servlet request object and multipart/form-data


Hi all,

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??

TIA,

Nathan Wheat
Technical Sales Consultant
Firmware Design
Phone:  0401 148 989
Email:  [EMAIL PROTECTED]
http://www.firmware.com.au

Are you a Web Developer or Designer?
Looking for an edge? If so, check out Web Design 2001
Go to the link Below to find out more & register
<http://wd2001.firmware.com.au/ft>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Servlet request object and multipart/form-data

2001-07-16 Thread Moore, Jim

check out oreilly's servlet package. it contains a good multipart request
handler class:

http://www.servlets.com/cos/index.html

--jim

-Original Message-
From: Nathan Wheat [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 15, 2001 10:43 PM
To: JRun-Talk
Subject: Servlet request object and multipart/form-data


Hi all,

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??

TIA,

Nathan Wheat
Technical Sales Consultant
Firmware Design
Phone:  0401 148 989
Email:  [EMAIL PROTECTED]
http://www.firmware.com.au

Are you a Web Developer or Designer?
Looking for an edge? If so, check out Web Design 2001
Go to the link Below to find out more & register
<http://wd2001.firmware.com.au/ft>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Servlet request object and multipart/form-data

2001-07-15 Thread Nathan Wheat

Hi all,

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??

TIA,

Nathan Wheat
Technical Sales Consultant
Firmware Design
Phone:  0401 148 989
Email:  [EMAIL PROTECTED]
http://www.firmware.com.au

Are you a Web Developer or Designer?
Looking for an edge? If so, check out Web Design 2001
Go to the link Below to find out more & register

 




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists