如何删除购物车中的记录
购物车页面 删除 链接 传送bookName值
action中
HttpSession session=request.getSession();
String action=request.getParameter( "action ");
String bookName=request.getParameter( "bookName ");
try
{
byte temp[]=bookName.getBytes( "ISO8859_1 ");
bookName=new String(temp);
}
catch(Exception e)
{
e.printStackTrace();
}
DBConnection db=new DBConnection();
BookOrderBean bob=db.shoppingBag(bookName,bookNum);
Vector vector=(Vector)session.getAttribute( "vector ");
if(vector==null)
{
vector=new Vector();
}
else
{
if(action!=null)
{
if(action.equals( "del "))
{
vector.remove(bookName);
listFlag=false;
}
}
else
{
for(i