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

📄 d032.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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>D032</title>
<link href="/css/base.css" rel="stylesheet" type="text/css">
<Script Language="JavaScript"> 
   function mtText(obj){
      if (obj!=""){
      	document.U01MNounceForm.mntypeText.disabled="true";
      	document.U01MNounceForm.mntypeText.value="";
      }else{
      	document.U01MNounceForm.mntypeText.disabled="";      	
      }
   }
    </Script>
</head>


<html:form action="/U01MNounceAction">
  <html:hidden property="method" value="insert" />
  <html:hidden property="mNounce.NId" />
  <html:hidden property="flag" value="0" />
  <table width="80%"  border="0" align="center" cellpadding="4" cellspacing="0">
  <tr>
    <td><span class="font_title">发布公告</span></td>
  </tr>
</table>
    <table width="80%"  border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#7AA1E6">
      <tr align="center" bordercolor="1" bgcolor="#FFFFFF">
        <td width="24%"><div align="center">公告标题:</div></td>
        <td colspan="2"><div align="left">
            <html:text property="mNounce.NTitle" styleClass="input-text" />
            <html:errors property="mNounce.NTitle" />
            <html:errors property="error" />
        </div></td>
      </tr>
      <tr align="center" bordercolor="1" bgcolor="#FFFFFF">
        <td><div align="center">公告分类:</div></td>
        <td width="26%"><div align="left">
            <html:select  property="mNtype.typeId" styleClass="input-select" onchange="mtText(document.U01MNounceForm.mntype.options[document.U01MNounceForm.mntype.selectedIndex].value)" styleId="mntype">
              <html:option value="">
                请选择帮助分类
              </html:option>
              <html:options collection="ntype" property="typeId" labelProperty="NType" />
            </html:select>
            
        </div></td>
        <td width="50%"><div align="left">
            <html:text property="mNtype.NType" styleClass="input-text"  value="" styleId="mntypeText"/>
            <html:errors property="mNtype.typeId" />
        </div></td>
      </tr>
      <tr align="center" bordercolor="1" bgcolor="#FFFFFF">
        <td><div align="center">公告内容: </div></td>
        <td colspan="2"><div align="left">
            <html:textarea property="mNounce.NContent" styleClass="input-textarea" cols="40" rows="5" />
        	<html:errors property="mNounce.NContent" />
        </div></td>
      </tr>
    </table>
    <div align="center"><br/>
      <br/>
      <html:submit styleClass="inputstyle2">
        添加
      </html:submit>
</div>
</html:form>
</body>
</html>

⌨️ 快捷键说明

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