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:[EMAIL PROTECTED]]

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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to