Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what do the parameters mean for multipartrequest?

 
Tina Desai
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
multipartrequest ..What is that?
 
Tina Desai
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its this
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
debugging someone else's code

Cool!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic