Re: Multipart Request

2005-10-09 Thread Dakota Jack
Are you using Struts?  Struts has a bizarre idea that causes this type
of problem.



On 10/8/05, Dhiren Bhatia [EMAIL PROTECTED] wrote:
 Hi all,
  I'm having trouble with the HttpServletRequest object if my post contains
 multipart data. The request object loses all the parameters set from the
 html form.
 i.e. request.getParameter(myParam); always returns null. If I remove the
 multipart encoding from my form, I see the parameter values.
  If I use the OReilly MultipartRequest, the constructor needs me to set the
 directory to save the file in so I cannot make that value dynamic by
 receiving it from the HTTP post. I want to receive the dir name where the
 file will be saved from the HTML form.
  Any ideas? Hope this makes sense.
  Thanks,
 -D




--
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multipart Request

2005-10-09 Thread Dhiren Bhatia
Yea, I'm using Struts. I like some of its features so I want to continue
using it. But multipart is a mess. So, is there any way to retain the
parameters in HTTPServletRequest?
 Thanks.

 On 10/9/05, Dakota Jack [EMAIL PROTECTED] wrote:

 Are you using Struts? Struts has a bizarre idea that causes this type
 of problem.



 On 10/8/05, Dhiren Bhatia [EMAIL PROTECTED] wrote:
  Hi all,
  I'm having trouble with the HttpServletRequest object if my post
 contains
  multipart data. The request object loses all the parameters set from the
  html form.
  i.e. request.getParameter(myParam); always returns null. If I remove
 the
  multipart encoding from my form, I see the parameter values.
  If I use the OReilly MultipartRequest, the constructor needs me to set
 the
  directory to save the file in so I cannot make that value dynamic by
  receiving it from the HTTP post. I want to receive the dir name where
 the
  file will be saved from the HTML form.
  Any ideas? Hope this makes sense.
  Thanks,
  -D
 
 


 --
 You can lead a horse to water but you cannot make it float on its back.
 ~Dakota Jack~

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Multipart Request

2005-10-09 Thread Dakota Jack
You either have to stop using ActionForm or go in and rewrite the code
on multiparts.  The existing code is really sloppy and bad.  There are
references that do nothing.  Others do things they shouldn't do, etc. 
Essentially, you really should avoid using it and write your own
implementation of the commons implementation.  Unfortunately, Martin
Cooper has his finger in both pies and really does not play with
others on this.  He just keeps it to himself pretty much.  If you want
to get a snapshot before the next unrehearsed release, better do it
now.



On 10/9/05, Dhiren Bhatia [EMAIL PROTECTED] wrote:
 Yea, I'm using Struts. I like some of its features so I want to continue
 using it. But multipart is a mess. So, is there any way to retain the
 parameters in HTTPServletRequest?

 Thanks.


 On 10/9/05, Dakota Jack [EMAIL PROTECTED] wrote:
 
  Are you using Struts?  Struts has a bizarre idea that causes this type
  of problem.
 
 
 
  On 10/8/05, Dhiren Bhatia  [EMAIL PROTECTED] wrote:
   Hi all,
I'm having trouble with the HttpServletRequest object if my post
 contains
   multipart data. The request object loses all the parameters set from the
   html form.
   i.e. request.getParameter(myParam); always returns null. If I remove
 the
   multipart encoding from my form, I see the parameter values.
If I use the OReilly MultipartRequest, the constructor needs me to set
 the
   directory to save the file in so I cannot make that value dynamic by
   receiving it from the HTTP post. I want to receive the dir name where
 the
   file will be saved from the HTML form.
Any ideas? Hope this makes sense.
Thanks,
   -D
  
  
 
 
  --
  You can lead a horse to water but you cannot make it float on its back.
  ~Dakota Jack~
 
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 




--
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multipart Request

2005-10-08 Thread James Black
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dhiren Bhatia wrote:
 Hi all,
  I'm having trouble with the HttpServletRequest object if my post contains
 multipart data. The request object loses all the parameters set from the
 html form.
 i.e. request.getParameter(myParam); always returns null. If I remove the
 multipart encoding from my form, I see the parameter values.
  If I use the OReilly MultipartRequest, the constructor needs me to set the
 directory to save the file in so I cannot make that value dynamic by
 receiving it from the HTTP post. I want to receive the dir name where the
 file will be saved from the HTML form.
  Any ideas? Hope this makes sense.

  I had that problem recently, but when I used apache's commons
fileupload class, I got it to work.

  This page may help you.
http://jakarta.apache.org/commons/fileupload/using.html


- --
Corruptisima republica plurimae leges. [The more corrupt a republic, the
more laws.]
Tacitus from Annals III, 116AD
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFDSI6LJ/zyYkX46joRAl83AJ4nmgA07+ymdRfbDbsrqRsoR3E2ngCfZYVD
9iX9/Z0s1+gfceD7xKDEWP0=
=O9S/
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Multipart Request

2001-05-28 Thread Bhat, Mahesh

You should still be able to use the oreilly package with tomcat (I am
assuming you are refering to jason hunts package), Servlet Api 2,2 does not
provide any classes for multipart requests and you have to use third part
classes

regards
mahesh
-Original Message-
From: David DELGRANCHE [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 28, 2001 4:49 PM
To: Liste de diffusion TomCat (Adresse de messagerie)
Subject: Multipart Request


Hi

I have a servlet which has two parameters, a binary one and a
non-binary 
one. I used to work with JServ and an O'Reilly package to do multipart 
Request, so I could pass binary and non-binary informations in the same 
HttpServletRequest. I wanted using Tomcat and JSDK 2.2 to replace JServ and 
O'Reilly package without success.
Does anyone could help me? Is it possible to do so?
Thanks for reply


David DELGRANCHE
[EMAIL PROTECTED]  
tel. 02.99 05.34.25 
Fax: 02.99.05.34.05
Sogitec Industries
24, Avenue Lavoisier
ZI du Champ Niguel
35174 BRUZ CEDEX




Important:

Internet communications are not necessarily secure and may be intercepted or changed 
after they are sent.
The Abbey National Group does not accept liability for any such changes. If you wish 
to confirm the origin or content of this communication, please contact the sender 
using an alternative means of communication.

This communication does not create or modify any contract.

If you are not the intended recipient of this communication you should destroy it 
without copying, disclosing or otherwise using its contents. Please notify the sender 
immediately of the error.

The Abbey National Group comprises Abbey National plc and its subsidiary group of 
companies.

Abbey National plc. Registered Office: Abbey House, Baker Street, London, NW1 6XL. 
Reg. No. 2294747.
Registered in England.