Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Way to access textarea from a html form 1

Status
Not open for further replies.

borntorun

MIS
Oct 16, 2003
82
GB
Hi,

Do you know how i can access the following form, which is in a simple html page.

<form method="post" ACTION=" name="upform" ENCTYPE='multipart/form-data'>
<p>
<input type="textarea" name="textarea" value="Find in Jsp">
<input type="submit" name="Submit" value="Submit">
<input type="hidden" name="action" value="upload">

</form>

this is my jsp test page.

<%@page language="java" %><%

String filename=request.getParameter("upform.textarea"); // also tried request.getParameter("textarea") //form //upload;

out.println("Try to get text area " + filename);


%>

No luck whatsoever.

Thanks for any help.
 
Hi,

If the html form is using ENCTYPE="multipart/form-data" then you cannot assess the parameters by calling request.getParameter(String s);
Generally Enctype is used when you want to uplaod files to the server.


Cheers
Venu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top