Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
It is sorta covered in the
JavaRanch Style Guide
subject: acessing data of the textarea within the form of multipart type
About form submission
query regarding present code
problem enctype and charset
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013