commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turoff, Steve" <Steve.Tur...@tenethealth.com>
Subject RE: How to process parameters using File Upload
Date Tue, 17 Dec 2002 21:12:17 GMT
Excellent. Thank you.

Steve

> -----Original Message-----
> From: Murphy, Tom (T06) [mailto:murphy_th@naptheon.com]
> Sent: Tuesday, December 17, 2002 2:59 PM
> To: 'Jakarta Commons Users List'
> Subject: RE: How to process parameters using File Upload
> 
> 
> I thought it odd, too, that they worked well to make the hard 
> thing (file
> access) easy, but that the easy thing (textfield access) became hard.
> 
> Things that worked for me:
> * looking at the snippet at 
> http://jakarta.apache.org/commons/fileupload
> * looking at the FileItem API
> * fieldName = fileItem.getFieldName();
> * fieldValue = new String (fileItem.get()); (!)
> 
> Hope this helps.
> 
> 
>  
> 
> -----Original Message-----
> From: Turoff, Steve [mailto:Steve.Turoff@tenethealth.com]
> 
> Greetings,
> 
> I have an HTML form that has two fields:
> 
> Name (a text field)
> Resume (a file field)
> 
> A servlet processes this form using the FileUpload classes. 
> If I didn't use
> FileUpload, I would get the value of "Name" by using something like:
> request.getParameter("Name")
> 
> However, I don't see anything equivalent in FileUpload. I see several
> methods for processing the "Resume" field, but don't see any 
> way to get the
> value of "Name". I would expect something like 
> getFieldValue(String field)
> 
> Does anyone know how to access the field values for non-file fields?
> 
> Thanks,
> Steve
> 
> --
> To unsubscribe, e-mail:   
<mailto:commons-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-user-help@jakarta.apache.org>



Mime
View raw message