欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

jsp学习笔记(13)

程序员文章站 2024-03-20 11:59:22
...
header.jsp
<%@ page language="java" contentType="text/html; charset=gb2312"
pageEncoding="gb2312"%>
<html>
<body>
<table background="../images/menu_bg.jpg" width="960">
<tr>
<td> <div id="menu">
<ul >
<li><a href="/OnlineShop/user/index.jsp" class="current">主页</a></li>
<li><a href="/OnlineShop/servlet/PageServlet">书籍列表</a></li>
<li><a href="#" onclick="JqueryDialog.Open('购物车','../user/cart.jsp', 630,
300);">查看购物车</a></li>
<%ArrayList isLogin = (ArrayList)session.getAttribute("login");
if(isLogin!=null){
%>
<li><a href="/OnlineShop/servlet/RemoveServlet?login=1" >退出</a> </li>
<%} %>
</ul>
</div>
</td>
<td>
<div>
<form method="post" action="/OnlineShop/servlet/SearchServlet"
onsubmit="returnsearch();">
<table width="180" height="10" border="0">
<tr >
<td valign="middle" ><input type="text" size="15" name="demo"
height="15" id="searchText"/>
</td>
<td valign="middle"><select name="select" id="searchSelect" >
<option value="name">书名</option>
<option value="cuban">出版社</option>
</select>
</td>
<td valign="middle"><input name="Input" type="submit" value="图书
搜索" size="5" class="mybutton"/></td>
</tr>
</table>
</form>
</div>
</td>
</tr>
</table>
</body>
</html>