categorydel.jsp

来自「JavaBean+Jsp 开发的《手机商城系统》」· JSP 代码 · 共 32 行

JSP
32
字号
<%@ 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 + =
减小字号Ctrl + -
显示快捷键?