📄 product1.jsp
字号:
<%@ page language="java" import="java.util.*,com.back.model.*" pageEncoding="utf-8"%>
<%
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>查找商品</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>
<center>
<hr>
<h1>
查询用户信息
</h1>
<form action="queryGoods.do" method="post">
请输入电影名称:<input type="text"name="goodsName">
<input type="submit" name="提交">
<hr>
<%
String err=request.getParameter("err");
if(err==null)
{
ProductBean pb=new ProductBean();
pb=(ProductBean)request.getAttribute("pb");
if(pb!=null)
{
%>
<font color=red>查询结果:</font>
<table>
<tr bgcolor=pink><td>商品ID</td><td>商品名称</td><td>剩余数量</td><td>商品价格</td><td>商品类型</td><td>浏览次数</td></tr>
<tr bgcolor=silver><td><%=pb.getGoodsId() %></td><td><%=pb.getGoodsName() %></td><td><%=pb.getGoodsNum() %></td><td><%=pb.getGoodsPrice() %></td><td><%=pb.getType() %></td><td><%=pb.getSkimTimes() %></td></tr>
</table>
<%
}else
{
%>
<font color=red>不存在该商品!</font>
<%
}
}
%>
</form>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -