下面我的request.getParameter()如何写!
exportcreate_o.jsp中如何取得下面网页中
form的各项的值?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK TYPE = "TEXT/CSS" REL = "STYLESHEET" HREF = "sf.css" >
<script language = "JavaScript">
function addrow()
{
newRow = PLList.insertRow(PLList.rows.length);
newRow.id="tdt";
newRow.ln=allCount;
c1 = newRow.insertCell(0);
c1.id="delItem";
c1.ln=allCount;
c1.onclick=delIt;
c1.className="scheduleButtonVisible";
c1.onmouseover=mouseOver;
c1.onmouseout=mouseOut;
c1.innerHTML="<input type='hidden' name='edit'>";
c2 = newRow.insertCell(1);
c2.ln=allCount;
c2.innerHTML="<input type=text name = 'pname' size=20 In= " + allCount + ">";
c3 = newRow.insertCell(2);
c3.ln=allCount;
c3.innerHTML="<input type=text name = 'quantity' size=15 In = " + allCount + ">";
c4 = newRow.insertCell(3);
c4.ln=allCount;
c4.innerHTML="<select name = 'q_unit' In = " + allCount + "><option value='pcs'>pcs</select>";
c5 = newRow.insertCell(4);
c5.ln=allCount;
c5.innerHTML="<input type=text name = 'weight' size=15 In = " + allCount + ">";
c6 = newRow.insertCell(5);
c6.ln=allCount;
c6.innerHTML="<select name = 'w_unit' In = " + allCount + "><option value ='g'>G</select>";
c7 = newRow.insertCell(6);
c7.ln=allCount;
c7.innerHTML="<input type=text name = 'price' size=15 In = " + allCount + ">";
c8 = newRow.insertCell(7);
c8.ln=allCount;
c8.innerHTML="<select name = 'currency' In = " + allCount + "><option value ='rmb'>RMB<option value='us'>US</select>";
allCount++
}
function delIt()
{
line=parseInt(event.srcElement.ln,10)
if (line>0)
for (i=1;i<PLList.rows.length;i++)
if (tdt[i].ln==line)
{
if (document.createbargain.pname[i].value.length>0 || document.createbargain.quantity[i].value.length>0 || document.createbargain.weight[i].value.length>0 || document.createbargain.price[i].value.length>0)
if (!confirm("Are you sure you want to delete this record?"))
return
PLList.deleteRow(i)
}
}
function mouseOver()
{
event.srcElement.className="delMouseOver"
}
function mouseOut()
{
event.srcElement.className="scheduleButtonVisible"
}
</script>
<body bgcolor="#FFFFCC">
<form action = "exportcreate_o.jsp" method = "post" name = "createbargain" >
<p align = center> <b>CIQ BARBAIN EXPORT MANAGER</b></p>
<table cellpadding = "7" width="700" bgcolor="#99CC99" align="center" id="PLList">
<TBODY>
<tr align="center" id = tdt>
<th width = 10>
<div align="center">x
<INPUT name=edit type=hidden>
</div>
</th>
<th width="210">
<div align="center">Product Name
<input name=pname type=hidden>
</div>
</th>
<th width="110">
<div align="center">Permit Quantity
<INPUT name=quantity type=hidden>
</div>
</th>
<th width="50">
<div align="center">Unit_Q
<INPUT name=q_unit type=hidden>
</div>
</th>
<th width="110">
<div align="center">Permit Weight
<INPUT name=weight type=hidden>
</div>
</th>
<th width="50">
<div align="center">Unit_W
<INPUT name=w_unit type=hidden>
</div>
</th>
<th width="110">
<div align="center">Unit_Price(g)
<INPUT name=price type=hidden>
</div>
</th>
<th width="50">
<div align="center">Currency
<INPUT name=currency type=hidden>
</div>
</th>
</tr>
</TBODY>
</table>
<p align = center>
<input type = button name = "add" value = " Add " id="button" OnClick= "addrow()" >
<input type = submit name = "save" value = " Save" id = "buttoon">
</p>
</form>
<SCRIPT>
allCount=1
</SCRIPT>
</body>
</html>