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

📄 e21.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 sbText(sb){
			if (sb != ""){
				document.U02E2Form.blogtypetext.disabled = "true";
				document.U02E2Form.blogtypetext.value = "";
			}else{
				document.U02E2Form.blogtypetext.disabled = "";
			}
		}
	</script>
<link href="/css/base.css" rel="stylesheet" type="text/css">
<title>发布文章</title>
</head>

<body>
<html:form action="/U02E21">

  <table width="80%" align="center" cellpadding="1" cellspacing="1" bgcolor="#7AA1E6">
    <tr>
      <td height="20" bgcolor="#FFFFFF"><span class="font_title">发布新文章</span></td>
    </tr>
    <tr>
      <td height="20" bgcolor="#FFFFFF"><div align="center">发布新文章</div></td>
    </tr>
    <tr>
      <td width="721" height="20" bgcolor="#FFFFFF">文章主题:
          <html:text name="U02E2Form" property="sblog.sbTitle"/><html:errors property="sblog.sbTitle"/></td>
    </tr>
    <tr>
      <td bgcolor="#FFFFFF"> 日志分类:
          <html:select property="sblogtype.stId"  styleClass="input-select" onchange="
           sbText(document.U02E2Form.sblogtypeId.options[document.U02E2Form.sblogtypeId.selectedIndex].value)" styleId="sblogtypeId">
          	<html:option value="">
          	请选择分类
          	</html:option>
            <html:options collection="list1" property="stId" labelProperty="stTitle" />
          </html:select>
          <html:text  property="sblogtype.stTitle" styleClass="input-text" styleId="blogtypetext"/></td>
    </tr>
    <tr>
      <td bgcolor="#FFFFFF">
              <div align="left">
                      <html:textarea cols="40" rows="5" property="sblog.sbCon"/><html:errors property="sblog.sbCon"/>
              </div></td>
    </tr>
    <tr>
      <td bgcolor="#FFFFFF" align="center">
          <html:submit value="提交"  styleClass="inputstyle2" />
  &nbsp;&nbsp;&nbsp;
          <html:button value="返回" styleClass="inputstyle2" onclick="window.location.href='/U02E2.do'" property=""/>
      </td>
    </tr>
  </table>
</html:form>
<p>&nbsp; </p>
</body>
</html:html>

⌨️ 快捷键说明

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