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