File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
acessing data of the textarea within the form of multipart type
Joined: Feb 25, 2003
Nov 04, 2004 05:29:00
i'm trying to access the text in the textarea which is a member of a form
with ENCTYPE="multipart/form-data". this form also has a browse button to upload files.
i'm able to upload the file using this form but the text area gives a null value.
i'm sending the code snippet. please help me out.
<FORM name = file ENCTYPE="multipart/form-data" method=post action="Upload"> File Name : <INPUT TYPE="file" NAME="currentfilename"> <textarea name=Desc></textarea> </FORM> request.getParameter("Desc"); gives a null value
Joined: Feb 18, 2003
Nov 06, 2004 05:09:00
If you are not adverse to using apache project libraries, look at the apache jakarta commons projects
fileupload and httpclient
they offer some very good libraries in working with multipart forms that have file attachments.
I agree. Here's the link:
subject: acessing data of the textarea within the form of multipart type
problem enctype and charset
About form submission
query regarding present code
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014