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

📄 a20.jsp

📁 持久层hibernate技术使用的一个例子
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html; charset=GBK" language="java" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@	taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@	taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html:html>
<head>
<title>考题管理</title>
<link href="/css/base.css" rel="stylesheet" type="text/css">
</head>

<body>
<p>&nbsp;</p>

<html:form action="/U05A20Action">
<html:hidden property="method" value="search"/>
<table width="80%"  border="0" align="center" cellpadding="4" cellspacing="0">
  <tr>
    <td width="30%"><span class="font_title">选择学科和题型,进行更详细的查询</span></td>
	<td width="17%">
		学科:<html:select property="subject" >
				<html:option value="0">请选择</html:option>
				<html:options collection="SSbname" property="SSid" labelProperty="SSbname"/>
			</html:select>
	</td>
	<td width="17%">		
		题型:<html:select property="type" >
				<html:option value="0">请选择</html:option>
				<html:options collection="tqtName" property="tqtId" labelProperty="tqtName"/>
			</html:select>
	</td>
	<td width="10%"><html:errors property="selectError"/></td>
	<td width="5%"><html:submit styleClass="inputstyle2">查 询</html:submit></td>
  </tr>
</table>  	
</html:form>

</table>

<hr width="80%">

<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 ><b>学科列表</b></td>
    <td ><b>考题数量</b></td>
	<td ><b>操作</b></td>
  </tr>

  <logic:present name="SSbname">
  	<logic:iterate id="list" name="SSbname">
  	<tr align="center" bordercolor="1" bgcolor="#FFFFFF">
    	<td><html:link href="/U05ForwardA201.do?SSid=${list.SSid}"><bean:write name="list" property="SSbname"/></html:link></td>
    	<td >
    	<!----------->
    	<c:set var="i" value="${0}"/>
    	<logic:iterate id="question" name="TQuestion">
	  		<logic:equal name="question" property="CSubject.SSid" value="${list.SSid}">
	  		<c:set var="i" value="${i+1}"/>
	  		</logic:equal>
	  	</logic:iterate>
	  	<c:out value="${i}"/>
	  	<!----------->
    	</td>
    	<td ><html:link href="/U05ForwardA202Action.do?id=${list.SSid}">添加考题</html:link></td>
  	</tr>
  	
  	</logic:iterate>
  </logic:present>
  
</table>
</body>
</html:html>

⌨️ 快捷键说明

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