【JSP开源代码栏目提醒】:网学会员鉴于大家对JSP开源代码十分关注,论文会员在此为大家搜集整理了“topicinsert.jsp”一文,供大家参考学习
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<%@page import = "java.util.*"%>
<%@page import = "model.bbs.hibernate.*"%>
<%
request.setCharacterEncoding("gb2312");
List topicList = (List)session.getAttribute("topiclist");
%>
<%@ include file="..\taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>BBS SYSTEM</title>
<style type="text/css">
<!--
.style5 {font-family: "隶书";
font-size: 24px;
}
-->
</style>
</head>
<body>
<p align="center">添加主题</p>
<div align="center">
<form name="form1" method="post" action="/EMIS/topicinsert.do">
<html:errors/>
<table width="436" border="0">
<tr>
<td width="118"><div align="right"><span class="TitleColor">主题名称
</span></div></td>
<td width="118"><span class="TitleColor">
<input name="name" type="text" id="name" maxlength="100">
</span></td>
<td width="188"> </td>
</tr>
<tr>
<td><div align="right"><span class="TitleColor">
主题描述
</span><span class="TitleColor"> </span></div></td>
<td><span class="TitleColor">
<input name="remarks" type="text" id="remarks" maxlength="100">
</span></td>
<td><span class="TitleColor">
<input type="submit" name="Submit" value="添加">
</span></td>
</tr>
</table>
</form>
</div>
<div align="center"></div>
<p align="center"><span class="style5">论 坛 主 题 浏 览 表</span></p>
<table width="528" border="1" align="center">
<tr bgcolor="#DFDFFF">
<td><div align="center">名称</div></td>
<td><div align="center">描述</div></td>
<td width="12%"><div align="center">修改</div></td>
</tr>
<%
if (topicList != null) {
for (int i=0; i<topicList.size(); i++) {
Topic topic = (Topic)topicList.get(i);
String name = topic.getName();
String id = String.valueOf(topic.getId());
String remarks = topic.getRemarks();
%>
<tr>
<td width="14%" bgcolor="#FFFF00"><%=name%></td>
<td width="12%" bgcolor="#FFFF00"><%=remarks%></td>
<td valign=center><div align="center"><a href="topicselect.do?id=<%=id%>"><img height=18 width=47 border=0 src="bbs/image/modify.gif"></a></div></td>
<%
}
}
%>
</tr>
</table>
</body>
</html>
上一篇:
topicdetail.jsp
下一篇:
数字水印技术的无线传感器网络安全机制研究思考