This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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!
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
Joined: Nov 27, 2001
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 ]
Joined: Mar 13, 2003
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