⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 deldepartment.jsp

📁 一个简单的Ext例子
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=GBK"
    pageEncoding="GBK"%>
<%@ page import="com.utils.service.Impl.*" %>
<%@ page import="com.utils.model.*" %>
<%@ page import="java.util.*" %>
<%
	String id = request.getParameter("id");
	String deptName = request.getParameter("deptName");
	if(deptName!=null){
		deptName = new String((deptName).getBytes("ISO-8859-1"),"UTF-8");
	}
	String deptAchor = request.getParameter("deptAchor");
	if(deptAchor!=null){
		deptAchor = new String((deptAchor).getBytes("ISO-8859-1"),"UTF-8");
	}
	String deptTel = request.getParameter("deptTel");
	String deptNote = request.getParameter("deptNote");
	if(deptNote!=null){
		deptNote = new String((deptNote).getBytes("ISO-8859-1"),"UTF-8");
	}
	
	UtilsServiceImpl utilsControl = new UtilsServiceImpl();
	Department dept = new Department();
	dept.setId(id);
	if(deptName!=null){
		dept.setDeptName(deptName);
	}else{
		dept.setDeptName("");
	}
	if(deptAchor!=null){
		dept.setDeptAchor(deptAchor);
	}else{
		dept.setDeptAchor("");
	}
	if(deptTel!=null){
		dept.setDeptTel(deptTel);
	}else{
		dept.setDeptTel("");
	}
	if(deptNote!=null){
		dept.setDeptNote(deptNote);
	}else{
		dept.setDeptNote("");
	}
	
	utilsControl.addDepartment(dept);
	
	String json = "";
	json = "{totalProperty:1,'user':["+
		"{id:'03101058',personName:'卖月梅',personDept:'开发一部',personPost:'Java程序员',personNational:'汉族',personNarriage:'未婚',personSex:'男',"+
		"personBirthday:'1984-4-1',personCulture:'本科',personProfessional:'计算机',personYear:'2年',personLanguage:'4级',personSalary:'3500',personAddress:'茂名',personIDCard:'111',personSocialID:'111',personAge:25,personTel:'111'}"+
		"]}";
	response.getWriter().write(json);
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -