Sudarson, You can also go to www.jspsmart.com and download their file upload/download utility. You will find an implementation of the HttpRequest object, that acts as a wrapper around the current one and extracts the form elements (incase of multi-part also) and returns them when you say request.getParameter().
-----Original Message----- From: Nic Ferrier [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 4:38 AM To: [EMAIL PROTECTED] Subject: Re: multi-part request Sudarson Roy Pratihar <[EMAIL PROTECTED]> writes: > Hi All, > > In case of encptype="multipart/form_data", what should be returned in = > request.getParameter("someparameter") ? Will it return null ? > > Any suggestion are welcome. You should always check the archives for things like this, servlets have been around for a while now and many people have asked this question before. 99% of servlet containers will return "null". This is because most containers do not understand the multipart request body... Jason Hunter wrote a multipart utility that handles all this for you quite nicely, it's available here: http://www.servlets.com Nic Ferrier ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
