commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Cook <bc...@printtime.com>
Subject Re: servletFile upload: javax.servlet,servlet throws exception
Date Fri, 26 Aug 2005 14:09:35 GMT


I have been wondering about this too.  I also just noticed 
DiskFileUpload has been deprecated and the replacement classes listed do 
not seem to have the same functionality.  Are there plans for an update 
to the user guides?


Vasileios.Kantartzis@nc3a.nato.int wrote:
> I managed to solve the problem using the DiskFileUpload object 
> Using the parse request method provided. How would it be possible to do
> the same using ServletFile upload?
> Just make an instance othe object and pass my request reference wouldn't
> that work? I would like to use the ServletFileUpload since
> DiskFileUpload  seems to be deprecated.
> Thank you 
> -----Original Message-----
> From: Martin Cooper [mailto:mfncooper@gmail.com] 
> Sent: 25 August 2005 22:24
> To: Jakarta Commons Users List
> Subject: Re: servletFile upload: javax.servlet,servlet throws exception
> 
> On 8/25/05, Vasileios.Kantartzis@nc3a.nato.int
> <Vasileios.Kantartzis@nc3a.nato.int> wrote:
> 
>>Hello all,
>>I am trying to wrap the servlet request method as described in the
>>documentation to extract form field information and the actual file
>>submitted .
>>I am using the ServletFileUpload class in order to extract the
> 
> desiered
> 
>>information  as follows;
>>ServletFileUpload servlet = new ServletFileupload(factory) // a
> 
> factory
> 
>>instance
>>Servlet.parseRequest(request); // the httpRequest.
>>
>>At this point I get the following exception:
>>Sevlet execution threw an exception
>>
>>With a reference to a code line number 116 in ServletFileUpload.java
> 
> 
> You'll need to provide us with more information than that. That line
> of code is simply a call to another parseRequest() method, so I can't
> tell anything about what's going wrong from just that.
> 
> --
> Martin Cooper
> 
> 
> 
>>Does any one have a suggestion please ?
>>How should I get the requested form fields ?
>>
>>
>>
>>
>>
>>V.(Billy) Kantartzis
>>Surveilance & Reconnaissance Recource Centre
>>Command & Control Systems Devision
>>T:+31(0)70374-3706
>>F: +31(0)70374-3079
>>E:vasileios.kantartzis@nc3a.nato.int
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 


-- 
Brian Cook
Digital Services Analyst
Print Time Inc.
bcook@printtime.com
913.345.8900


Mime
View raw message