A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Servlets
Author
acessing data of the textarea within the form of multipart type
ramu av
Greenhorn
Joined: Feb 25, 2003
Posts: 28
posted
Nov 04, 2004 05:29:00
0
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.
ramu
<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
Jeremy Wilson
Ranch Hand
Joined: Feb 18, 2003
Posts: 166
posted
Nov 06, 2004 05:09:00
0
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.
Jeremy
Jeremy Wilson
I agree. Here's the link:
http://aspose.com/file-tools
subject: acessing data of the textarea within the form of multipart type
Similar Threads
query regarding present code
About form submission
Problem with file upload. Problem lies in javascript/dojo
mutipart/form-data
problem enctype and charset
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter