hibernate
<%@ page language="java" pageEncoding="gb2312"%>
<%@ page import="java.util.*,com.hiernate.util.*"%>
<jsp:directive.page import="com.hiernate.persistence.Placard;"/>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<html:base />
<title>公告详细信息</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="CSS/style.css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
}
.style1 {color: #C60001}
.style2 {color: #669999}
.STYLE4 {
font-size: 9pt;
color: #FFFFFF;
}
.STYLE6 {
font-size: 9pt;
color: #000000;
}
-->
</style>
<script language="javascript">
function mymodify()
{
if (form1.subject.value=="")
{
alert("请输入公告主题!");form1.subject.focus();return;}
if (form1.content.value=="")
{ alert("请输入公告内容!");form1.content.focus();return;}
form1.submit();
}
</script>
<link href="../../CSS/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<%
String strid= request.getParameter("ID"); //获得请求参数
List listPlacard = HibernateUtil.finplacardId(Integer.parseInt(strid)); //调用HibernateUtil方法,按id查找公告
if(!listPlacard.isEmpty()&&listPlacard.size()>0){ //判断listPlacard是否为空
for(int i=0;i<listPlacard.size();i++){
Placard placard =(Placard) listPlacard.get(i);
session.setAttribute("placard",placard); //将得到的Placard存入session中
%>
<table width="576" height="461" border="0" cellpadding="-2" cellspacing="-2"
background="../../Images/noword.jpg">
<tr>
&