📄 searchgoods.jsp
字号:
<%@ page language="java" 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>My JSP 'searchgoods.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">
-->
<script type="text/javascript">
function check(){
var name=document.myform.name.value;
if(name==""){
alert("查询条件不能为空,请重新填写商品名称!");
return false;
}
else{
return true;
}
}
</script>
</head>
<body>
<table border="0" width="100%" cellspacing=0 cellpadding=3
bordercolor="#326598">
<tr bgcolor="#e8f4ff">
<td height="30">
当前所在位置-->商品信息查询
</td>
<td height="30" align="right">
<a href="javascript:history.back()">返回</a>
</td>
</tr>
</table>
<br />
<br />
<table border="1" width="600" cellspacing="0" cellpadding="3"
align="center" bordercolor="#326598">
<tr>
<td align="center" height="40" colspan="3">
<b><font color=blue>按商品名称查询商品详细信息</font> </b>
</td>
</tr>
<tr>
<td height="30" align="center">
<form action="searchgoods.do" method="post" name="myform"
onsubmit="return check();">
<table width="350" border="0" cellpadding="1" cellspacing="0">
<tr>
<td height="21">
请输入商品名称:
</td>
<td>
<input name="name" type="text" size="20" maxlength="80">
</td>
<td align="center">
<input name="Submit" type="submit" value="查询" />
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -