关于getParameter得到空值的问题。
一个erjibiaoti.jsp如下:
<%@ page import= "xm.Condb,xm.FirstLevelTitle,java.util.* " isELIgnored= "false " contentType= "text/html; charset=GBK " %>
<html>
<head>
<title>
yijibiaoti
</title>
</head>
<body bgcolor= "lavender " >
<table align= "center " >
<tr>
<td align= "center ">
<h2> 二级标题及文件位置发布 </h2>
</td>
</tr>
<jsp:useBean id= "First " class= "xm.FirstLevelTitle " scope= "request "/>
<form action= "SecondLevelTitlePublishServlet " method= "post " >
<tr>
<td align= "center " >
<p>
一级标题:
<select name= "yjbt2 " size= "1 " >
<%
Collection col=First.getCol();
Iterator it =col.iterator();
FirstLevelTitle temp = new FirstLevelTitle();
while(it.hasNext())
{
temp=(FirstLevelTitle)it.next();
%>
<option value= " <%=temp.getId()%> ">
<%=temp.getTitleName()%>
</option>
<%
}
%>
</select>
</p>
</td>
</tr>
<tr>
<td align= "center ">
<p>
二级标题: <input type= "text " name= "ejbt2 " size= "12 " value= "xyz ">
</p>