<body>
<jsp:useBean id="catalog_name" scope="page" class="tables.Catalog" />
<%!String Catalog_name; Vector<Object> v;%>
<%v=catalog_name.queryCatalog_name(); %>
<form name="addBoard" action="<%=path %>/servlet/addBoardServlet" method="post">
<table align=center>
<tr>
<th>隶属栏目名:</th>
<td>
<select name="catalog_name">
<%
while(!v.isEmpty())
{
Catalog_name=(String)v.remove(0);
%>
<option value="<%=Catalog_name %>"><%=Catalog_name%></option>
<%
}
%>
</select>
</td>
</tr>
<tr>
<th>版块名称:</th>
<td><input type="text" name="name" style="width:500px;height:30px;" ></td>
</tr>
<tr>
<th>版块描述:</th>
<td><textarea name="descrip" rows="4" cols="60" ></textarea></td>
</tr>
<tr>
<th>版块类型:</th>
<td><input type="text" name="type" style="width:500px;height:30px;"></td>
</tr>
<tr>
<td colspan=2 align=right><input type=submit value="提交"></td>
</tr>
</table>
</form>
</body>
在servlet中,是用request.getParameter("catalog_name");获取的。
请帮忙给点指示,谢谢... ...
<jsp:useBean id="catalog_name" scope="page" class="tables.Catalog" />
<%!String Catalog_name; Vector<Object> v;%>
<%v=catalog_name.queryCatalog_name(); %>
<form name="addBoard" action="<%=path %>/servlet/addBoardServlet" method="post">
<table align=center>
<tr>
<th>隶属栏目名:</th>
<td>
<select name="catalog_name">
<%
while(!v.isEmpty())
{
Catalog_name=(String)v.remove(0);
%>
<option value="<%=Catalog_name %>"><%=Catalog_name%></option>
<%
}
%>
</select>
</td>
</tr>
<tr>
<th>版块名称:</th>
<td><input type="text" name="name" style="width:500px;height:30px;" ></td>
</tr>
<tr>
<th>版块描述:</th>
<td><textarea name="descrip" rows="4" cols="60" ></textarea></td>
</tr>
<tr>
<th>版块类型:</th>
<td><input type="text" name="type" style="width:500px;height:30px;"></td>
</tr>
<tr>
<td colspan=2 align=right><input type=submit value="提交"></td>
</tr>
</table>
</form>
</body>
在servlet中,是用request.getParameter("catalog_name");获取的。
请帮忙给点指示,谢谢... ...
解决方案 »
- 关于SSH整合的问题
- 高手帮我把这几个循环弄成递归啦
- s2sh中使用dwr的问题!在线等,解决就给分
- [提问]关于利用Cookie跟踪会话的问题
- 请教一个关于从数据库里取出的值判断问题。
- JBuilderX+weblogic部署webservice时碰到的问题,希望大家帮我看看
- axis大难题
- 动态生成WebServices的解决方案,来者有分
- tomcat环境下javabean使用jndi问题
- tomcat里调用BORLAND APP SERVER 里部署的EJB出错:Name PeasantryBizEJB is not bound in this Context
- For,for,help..
- 关于javaweb项目实战
看你页面代码有没有对它注释,没注释这里肯定得不到当前页面地址