📄 ex6_removework.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="java.util.*" %>
<HTML>
<BODY ><Font size=5>
<jsp:useBean id="car1" class="myclass.Car1" scope="session" >
</jsp:useBean>
<% String name=request.getParameter("deleteitem");
if(name==null)
{name="";
}
car1.删除货物(name);
byte c[]=name.getBytes("ISO-8859-1");
name=new String(c);
out.print("您删除了货物:"+name);
%>
<P>购物车中现在的货物:
<% Hashtable list=car1.列出购物车中的商品();
Enumeration enum=list.elements();
while(enum.hasMoreElements())
{ String goods=(String)enum.nextElement();
out.print("<BR>"+goods);
}
%>
<% String str1=response.encodeRedirectURL("Ex6_select.jsp");
%>
<FORM action="<%=str1%>" method=post name=form>
<Input type=submit value="继续购物">
</FORM>
<% String str=response.encodeRedirectURL("Ex6_RemovedGoods.jsp");
%>
<FORM action="<%=str%>" method=post name=form1>
<Input type=submit value="修改购物车中的货物">
</FORM>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -