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

📄 userinformation.jsp

📁 通过jsp/servlet实现web打印
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK" isELIgnored="false"%>
<%@page import="java.util.*"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'userinformation.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <jsp:useBean id="get" scope="session" class="bean.GetMoneyHistoryBean"></jsp:useBean>
  <body>
   
   <%
   		Vector information=(Vector)session.getAttribute("information");
    %>
    <form method="post" name="autoform" action="AutoBuild">
   
   <table width="65%" align="center" border="1" style="font-family:'宋体'; font-size:9pt;">
   <th></th>
   <th>姓名</th>
   <th>性别</th>
   <th>生日</th>
   <th>组别</th>
   <th>专业</th>
   <th>学院</th>
   	<c:forEach items="${information}" var="myAll">
   		<tr>
   		
   			<td>
   				<div align="center"><input type="checkbox" name="username" value="<c:out value="${myAll[0]}"/>"></div>
   			</td>
   			<td>
   				<div align="center"><c:out value="${myAll[0]}"></c:out></div>
   			</td>
   			<td>
   				<div align="center"><c:out value="${myAll[2]}"></c:out></div>
   			</td>
   			<td>
   				<div align="center"><c:out value="${myAll[1]}"></c:out></div>
   			</td>
   			<td>
   				<div align="center"><c:out value="${myAll[3]}"></c:out></div>
   			</td>
   			<td>
   				<div align="center"><c:out value="${myAll[4]}"></c:out></div>
   			</td>
   			<td>
   				<div align="center"><c:out value="${myAll[5]}"></c:out></div>
   			</td>
   		</tr>
   	</c:forEach>
   	<tr><td colspan=6><input type="submit"/>
   	</td></tr>
   </table>
   </form>
  </body>
</html>

⌨️ 快捷键说明

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