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

📄 e2.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>
<head>

<title>学员Blog</title>
<link href="/css/base.css" rel="stylesheet" type="text/css">
<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.U02E2Form.action = "/U02E2.do?start=" + start;
        document.U02E2Form.submit();
      }
      
    </script>
</head>
<body align="center">
 <html:form action="/U02E2">  


  <table width="80%" border="0">
    <tr>
      <td align="left"><span class="font_title">学员blog信息</span></td>
    </tr>
  </table>
  <table width="80%" align="center" cellpadding="1" cellspacing="1" bgcolor="#7AA1E6">
    <tr bgcolor="#FFFFFF">
      <td height="20" colspan="2" align="center">学员blog</td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width="526" align="left" name="sttitle" styleClass="input-select">日志分类:
          <select property="sblogtype.stId" >
          	<option value="0">请选择分类</option>
          	<logic:iterate id="sid" name="list1">
          	<option value="<bean:write name='sid' property='stId'/>"><bean:write name="sid" property="stTitle"/></option>
          	</logic:iterate>
          </select>
      </td>
      <td width="109"><html:link href="/e21.do?id=aaaa">我要发布Blog</html:link></td>
    </tr>
  </table>


    
    
    
 
  <table width="80%"  border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#7AA1E6" id="tab1">
    <tr bgcolor="#FFFFFF">
      <td height="20" align="center">日志标题babc</td>
      <td align="center">发布时间</td>
      <td align="center">评论</td>
     <td align="center">全选<input type="checkbox" name="checkbox4" value="checkbox" onClick="setValue(this)" class="input-checkbox"></td>
    </tr>
    <logic:present name="list2">
        <logic:iterate id="tf" name="list2" >
          <tr bgcolor="#FFFFFF">
            <td align="center" height="20">
              <a href="/U02E20.do?method=achieve&id=${tf.sbId}"><bean:write name="tf" property="sbTitle" /></a>
            </td>
            <td align="center">
              <bean:write name="tf" property="sbDate" format="yyyy-MM-dd HH:mm:ss"/>
            </td>
            <td align="center">
              <bean:write name="tf" property="sbQu" />
            </td>
            <td align="center">
              <input type="checkbox" name="sbId" value="${tf.sbId}" />
            </td>
          </tr>
        </logic:iterate>
      </logic:present>
       
      </td>
    </tr>
      
   
  </table>
  <logic:present name="tFileList1">
      <table width="80%" align="center">
        <tr>
          <td height="20" align="left">
            页数:
            <bean:write name="tFileList1" property="currentPage" />
            /
            <bean:write name="tFileList1" property="totalPage" />
            页&nbsp;每页:
            <bean:write name="tFileList1" property="range" />
            总数:
            <bean:write name="tFileList1" property="count" />
          </td>
          <td align="right">
            <bean:write name="tFileList1" property="fenye" filter="false" />
          </td>
        </tr>
      </table>
    </logic:present>
  <div align="center">
  	
    <html:submit value="删除" styleClass="inputstyle2"  property="" />
  </div>
</html:form>
</body>
</html>

⌨️ 快捷键说明

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