delete.jsp
来自「网上书店jsp开发 购物车 收藏 使用servlet 是小型项目 仅供」· JSP 代码 · 共 40 行
JSP
40 行
<%@ include file="import.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Insert title here</title>
</head>
<body>
<%
IBookInfo book = new BookInfoImple();
String[] values = request.getParameterValues("checkbox");
String temp = null;
for(int i=0;i<values.length;i++){
temp = values[i];
StringBuffer sb = new StringBuffer(temp.length());
for(int k=0;k<temp.length()-1;k++){
char ch = temp.charAt(k);
if(ch=='/'){
temp = temp.replace('/',' ');
String[] s = temp.split(" ");
for(int j=0;j<s.length;j++){
temp = sb.append(s[j]).toString();
}
}
}
Integer in = new Integer(temp);
int id = in.intValue();
book.delById(id);
}
response.sendRedirect("show.jsp");
%>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?