⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 a0.jsp

📁 持久层hibernate技术使用的一个例子
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=GBK" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<html:html>
<head>
 <script LANGUAGE='javascript'>
      function setValue(obj) {
        var oA = document.getElementById("tab1").getElementsByTagName("INPUT");

        for (var i = 0; i < oA.length; i++) {
          if (oA[i].type = "checkBox") {
            oA[i].checked = obj.checked;
          }
        }
      }
      function doSubmit1(start) {
        document.U05TBlogForm.action = "/U05TBlogForward.do?utf=search&start=" + start;
        document.U05TBlogForm.submit();
      }
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>教师Blog</title>
<link href="/css/base.css" rel="stylesheet" type="text/css">
</head>

<body>
<html:form action="/U05TBlog" >
<div align="center">
  <table width="80%" border="0">
    <tr>
      <td><div align="left"><span class="font_title">教师Blog信息</span></div></td>
    </tr>
  </table>
  <table width="80%" align="center" cellpadding="1" cellspacing="1" bgcolor="#7AA1E6">
    <tr bgcolor="#FFFFFF">
      <td height="20" colspan="2"><div align="center">教师Blog</div></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width="480"><div align="left">日志分类:
          <html:select property="tBlogtype.TTypeid">
          	<html:option value="0">请选择分类</html:option>
            <html:options collection="BlogType" property="TTypeid" labelProperty="TTitle"/>
          </html:select>
      </div></td>
      <td width="144"><div align="center">我要发布Blog</a></div></td>
    </tr>
    <tr bgcolor="#FFFFFF">
       <td height="20" colspan="2">
       </td>
    </tr>
  </table>
  <table width="80%"  border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#7AA1E6" id="tab1">
    <tr>
      <td width="348" height="20"><div align="left">日志标题</div></td>
      <td width="139"><div align="left">发布时间</div></td>
      <td> <div align="center">评论</div></td>
      <td><div align="center"><input type="checkbox" name="checkbox4" value="checkbox" onClick="setValue(this)" class="input-checkbox">全选</div></td>
    </tr>
    <logic:present name="tBlogList">
    	<logic:iterate id="king" name="tBlogList" property="rs">
		    <tr bgcolor="#FFFFFF" onmouseout="this.bgColor='#F1F2EE';" onmouseover="this.bgColor='#FFFfff';">
		      <td height="20">
		      <a href="/U05A01.do?chuan_id=<bean:write name="king" property="tbId"/>">
		      	<bean:write name="king" property="tbTitle" />
		      </a>
		      </td>
		      <td><div align="left">
		      <bean:write name="king" property="tbTime" format="yyyy-MM-dd HH:mm:ss"/>
		      </div>
		      </td>
		      <td width="70"><div align="center">
		      <bean:write name="king" property="TArticlequ" /></div></td>
		      <td width="71"><div align="center">
		        <input type="checkbox" name="tbid" value="${king.tbId}" />
		      </div></td>
		    </tr>
	    </logic:iterate>
    </logic:present>
  </table>
  <logic:present name="tBlogList">
  <table width="80%"  border="0">
    <tr>
      <td width="60%"> <div align="left">
	      页数:<bean:write name="tBlogList" property="currentPage" />/<bean:write name="tBlogList" property="totalPage" />页&nbsp;
	      每页:<bean:write name="tBlogList" property="range" /> 
	      总数:<bean:write name="tBlogList" property="count" /> </div>
	  </td>
      <td width="40%"><div align="right">
     	 <bean:write name="tBlogList" property="fenye" filter="false" /></div>
      </td>
    </tr>
  </table>
  </logic:present>
  <br>
  <table width="80%" cellpadding="0" cellspacing="0">
  	<tr><td align="center"><html:submit styleClass="inputstyle2">删除</html:submit></td></tr>
  </table>
</div>
</html:form>
</body>
</html:html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -