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

📄 search.jsp

📁 不错的东西,和大家分享下,大家一起学习,共同进步啊!
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
<title>My JSP 'search.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>
  <jsp:include  page="../include/top.jsp"></jsp:include> 
    <table width="100%" border="2">
       <tr>
       <table border="2">
       <tr>产品检索</tr>
       <form action="product/search.do">
       <tr>
       <td>名称</td><td><input type="text" name="name"></td>
       <td>最高库存</td><td><input type="text" name="number"></td>
       </tr>
        
          <tr>
       <td>最低价</td><td><input type="text" name="low"></td>
       <td>最高价</td><td><input type="text" name="high"></td>
       </tr>
          <tr>
       <td></td><td></td>
       <td></td><td><input type="submit" value="提交"></td>
       </tr>
        </form>
       </table>
       </tr>
       <tr>
         <td width="20%"><jsp:include page="../include/left.jsp" /> </td>
         <td width="80%">检索结果
         <table border="2">
         <tr><td>编号</td><td>产品名称</td><td>价格</td><td>库存情况</td><td>价格情况</td>
          </tr>
          
           <c:forEach var="pr" items="${list}" varStatus="s">
               <tr>
               <td>${pr.id }</td>
               <td>${pr.name }</td>
               <td>${pr.money }</td>
               <td><c:if test="${pr.number!=0 }" >
  	               </c:if>
  	               <c:if test="${pr.number==0 }" >
  	               </c:if>
  	               </td>
               <td>  <c:if test="${pr.money>30 }" >
  	                 高价
  	               </c:if>
  	               <c:if test="${pr.money<15 }" >
  	                低价
  	               </c:if>
  	              <c:if test="${pr.money>=15&&pr.money<=30 }" >
  	                中价
  	              </c:if>
  	           </td>
               </tr>
  
            </c:forEach>
          </table>
         
        </td>
       </tr>
    </table>
   <jsp:include flush="true" page="../include/bottom.jsp"></jsp:include>
  </body>
</html>

⌨️ 快捷键说明

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