This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problems with sending parameter with textarea tag

 
Jian Zhang
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in the form page I write:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Upload your Topic/Item</title>
<link rel="stylesheet" type="text/css" href="myStyle.css"/>
</head>

<body>
<form action="receiver.jsp" enctype="MULTIPART/FORM-DATA" method="post">
<p>
<table>
<tr>
<td>Topic Name *)</td>
<td> <input type="text" name="Topic" /></td>
</tr>
<tr>
<td>Item Name: (*)</td>
<td><input type="text" name="Item" /></td>
</tr>

<tr><td>Description:</td>
<td>
<textarea name="description" cols="40" rows="5" wrap="virtual">

</textarea>
</td></tr>
when I get the parameter of this textarea called "description", I got null value, I saw a post before saying that the multimedia part encryption type is not compatible with form elements sending to the server page. And If I want to unload a picture I have to use things from Jakarta...? I got the javabeans working perfectly and I don't want anything else
waiting for your reply , Thanks .
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65542
110
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you getting the parameter value? The request.getParameter family of methods will not work with multi-part forms; you need to parse the input on your own (or use a package written for that like the oreilly package).
 
Jian Zhang
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could you specify which package shall I use?
a url or what?
cheers
 
crispy bacon. crispy tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!