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

📄 a11.jsp

📁 持久层hibernate技术使用的一个例子
💻 JSP
字号:
<%@ page 
	language="java" 
	import="java.util.*"
	contentType="text/html; charset=gbk"
%>


<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<html:html>
<head>
 <script src="/js/meizzDate.js" type="text/javascript"></script>
 <Script LANGUAGE='javascript'>
	 function sub(id) 
    {   
    document.u04A11Form.action="/a11.do?method=go&id="+id; 
    document.u04A11Form.submit(); 
    } 
 </script>
<title>新建试卷</title>
<link href="/css/base.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="80%"  border="0" align="center" cellpadding="4" cellspacing="0">
  <tr>
    <td><span class="font_title">新建试卷</span></td>	
  </tr>
</table>
<html:form action="/a11">

<center>
  <table width="80%" height="20"  border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#7AA1E6">  
<tr bgcolor="#FFFFFF" >
<td width="30%">
  <div align="right">考试名称:</div></td>
<td>
  <div align="left">
    <html:text property="testInfovalue.TTestname" size="20" value="${info.TTestname}"/>
    <html:errors property="testInfovalue.TTestname"/>
  </div></td>
  </tr>
  <tr bgcolor="#FFFFFF">
<td width="30%">
  <div align="right">考试日期:
  </div></td>
<td colspan="5">
  <div align="left">
    <html:text property="date1" readonly="true" style="cursor:hand" onclick="setday(this,document.u04A11Form.date1)" value="${info.TTestdate}" />
    <html:errors property="date1"/>
  </div></td>
</tr>
<tr bgcolor="#FFFFFF"><td width="30%"><div align="right">考试时间: </div></td>
  <td>
    <div align="left">
      <html:text  property="testInfovalue.TTesttime" size="20" value="${info.TTesttime}"/>
      <html:errors property="testInfovalue.TTesttime"/>
  </div></td>
  </tr>
  <tr bgcolor="#FFFFFF">
  <td width="30%"><div align="right">试卷分数: </div></td>
<td><div align="left">
  <html:text property="testInfovalue.TTestpoint" size="20" value="${info.TTestpoint}"/>
  <html:errors property="testInfovalue.TTestpoint"/>
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="30%"><div align="right">考试科目:</div></td><td> <div align="left">
   <html:select property="subjectInfovalue.SSid" size="1" value="${info.CSubject.SSid}">
	  		<html:option value="0">请选择</html:option>
	    	<html:options collection="subject" property="SSid" labelProperty="SSbname"/>
	   </html:select>
   <html:errors property="subjectInfovalue.SSbname"/>
</div></td>
</tr>
 
<tr bgcolor="#FFFFFF"><td colspan="8">
  <div align="center">
  <html:button onclick="sub(${param.id});" styleClass="inputstyle2" property="">
  确定
  </html:button>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <html:button property="" styleClass="inputstyle2" onclick="window.location.href='/A1.do?method=find'" value="返回"/>
  </div></td>
</tr>
</table>
</center>  
</html:form>
</body>
</html:html>

⌨️ 快捷键说明

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