该系统可以实现邮件的收发

源代码在线查看: privilege.java

软件大小: 2350 K
上传用户: fzjw0803005
关键词: 收发
下载地址: 免注册下载 普通下载 VIP

相关代码

				package com.action.privilege;
				
				import java.io.IOException;
				import java.util.List;
				import javax.servlet.RequestDispatcher;
				import javax.servlet.ServletException;
				import javax.servlet.http.HttpServlet;
				import javax.servlet.http.HttpServletRequest;
				import javax.servlet.http.HttpServletResponse;
				import com.service.PrivilegeManager;
				import com.service.impl.PrivilegeManagerImpl;
				
				public class Privilege extends HttpServlet {
				
					public void doGet(HttpServletRequest request, HttpServletResponse response)
							throws ServletException, IOException {
				
						doPost(request,response);
					}
				
					public void doPost(HttpServletRequest request, HttpServletResponse response)
							throws ServletException, IOException {
				
						String positionId = request.getParameter("name");
						PrivilegeManager manager = new PrivilegeManagerImpl();
						List list = manager.searchPrivilegeByPositionId(Integer.parseInt(positionId));
						
						request.setAttribute("positionId", positionId);
						request.setAttribute("list", list);
						
						RequestDispatcher rd = request.getRequestDispatcher("/privilege/showPrivilege.jsp");
						rd.forward(request, response);
					}
				}
							

相关资源