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

📄 d021.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>D021</title>
<link href="/css/base.css" rel="stylesheet" type="text/css">
<Script Language="JavaScript"> 
   function mtText(obj){
      if (obj!=""){
      	document.U01MHelpForm.mhtypeText.disabled="true";
      	document.U01MHelpForm.mhtypeText.value="";
      }else{
      	document.U01MHelpForm.mhtypeText.disabled="";
      	
      }
   }
    </Script>
</head>


<html:form action="/U01MHelpUpdate">
  <html:hidden property="method" value="update" />
  <html:hidden property="mHelp.HId" />
  <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="mHelp.HTitle" styleClass="input-text" />
            <html:errors property="mHelp.HTitle" />
            <html:errors/>
        </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="mHtype.htId" styleClass="input-select" onchange="mtText(document.U01MHelpForm.mhtype.options[document.U01MHelpForm.mhtype.selectedIndex].value)" styleId="mhtype">
              <html:option value="">
                请选择帮助分类
              </html:option>
              <html:options collection="htype" property="htId" labelProperty="htName" />
            </html:select>
            
        </div></td>
        <td width="50%"><div align="left">
            <html:text property="mHtype.htName" styleClass="input-text"  value="" styleId="mhtypeText" disabled="true"/>
            <html:errors property="mHtype.htId" />
        </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="mHelp.HContent" styleClass="input-textarea" cols="40" rows="5" />
        	<html:errors property="mHelp.HContent" />
        </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 + -