wood burning stoves 2.0*
The moose likes Servlets and the fly likes what do the parameters mean for multipartrequest? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "what do the parameters mean for multipartrequest?" Watch "what do the parameters mean for multipartrequest?" New topic
Author

what do the parameters mean for multipartrequest?

Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
Hello,
Im not sure what I will get by the method getParameterNames() on the multipartrequest object. The filenames or the parameters for those files.. what does a parameter mean in this case? Is it 'inside' the uploaded file or what?
Thanks and Regards,
Tina


Alongwith being a good coder, try to be a good professional as well!
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

multipartrequest ..What is that?


Groovy
Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
Its this
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Tina -
When you work with files (uploading), you cannot use the normal request to "request" parameters. That's the reason you have to use external classes, like the oreilly classes or jspsmartupload.
These classes provide the functionality that you achieve by using a normal request (when you're not using multipart/request).
So, getParameterNames does the same job as the Request one.
does this answer your question?


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
BTW, if you're unsure of what it returns, just create a dummy JSP (or even a servlet), send some parameters and print them out. You will then figure it out (I don't remember exactly if it returns the name of the file as a parameter as well )
[ September 02, 2003: Message edited by: Andres Gonzalez ]
Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
Andres, it did answer my question.
yeah.. doing it myself is the best thing! did not have much time..
debugging someone else's code
Thanks Thanks!
Tina
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

debugging someone else's code

Cool!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what do the parameters mean for multipartrequest?