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

📄 result.jsp

📁 vb+java实现的图书管理系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String[][] bookinfo=(String[][])request.getAttribute("bookInfo");
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 'result.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>
  
  <body>
    <h2>检索结果列表</h2>
    <div style="padding-left:30px;padding-top:10px;">
    <%
    if(bookinfo!=null){
    %>
    <table style="BORDER: #d6d6d6 1px solid;">
    	<tr><th style="width:100px">题名</th><th style="width:100px">出版社</th><th style="width:100px">作者/编著</th><th style="width:40px"></th></tr>
    <%
	    for(int i=0;i<bookinfo.length;i++){ 
    	%>
    		<tr><td><%=bookinfo[i][1] %></td><td><%=bookinfo[i][2] %></td><td><%=bookinfo[i][3]%></td><td><a href="index.jsp?contr=search&type=moreInfo&bookId=<%=bookinfo[i][0]%>">详情</a></td></tr>
    	<%
	    }
	    %>
	    </table>
	    <%
	}
    else{
    	out.print("未找到相关书刊信息");
    }
    %>
    </div>
  </body>
</html>

⌨️ 快捷键说明

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