📄 categorydel.jsp
字号:
<%@ page language="java" import="com.test.ps.category.*" pageEncoding="UTF-8"%>
<html>
<head>
<title>删除类别</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">
</head>
<body>
<%
int cateId=Integer.parseInt(request.getParameter("cateId"));
int parId=0;
if(request.getParameter("parId")!=null)
parId=Integer.parseInt(request.getParameter("parId"));
String url;
String type=request.getParameter("type");
CategoryAction.category.deleteCategory(cateId,type);
if(type.equals("par")){
url="categoryManageParList.jsp";
}
else{
url="categoryManageSonList.jsp?parId="+parId;
}
response.sendRedirect(url);
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -