📄 addrightaction.java
字号:
// Created by Xslt generator for Eclipse.
// XSL : not found (java.io.FileNotFoundException: (Bad file descriptor))
// Default XSL used : easystruts.jar$org.easystruts.xslgen.JavaClass.xsl
package com.ahbay.struts.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.ahbay.struts.form.RightinfoForm;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.ahbay.commenMgr.commMethodMgr;
import javax.servlet.http.*;
import com.ahbay.RightMgr.RightinfoMgr;
/**
* AddrightAction.java created by EasyStruts - XsltGen.
* http://easystruts.sf.net
* created on 09-05-2006
*
* XDoclet definition:
* @struts:action validate="true"
*/
public class AddrightAction extends Action
{
// --------------------------------------------------------- Instance Variables
// --------------------------------------------------------- Methods
/**
* Method execute
* @param ActionMapping mapping
* @param ActionForm form
* @param HttpServletRequest request
* @param HttpServletResponse response
* @return ActionForward
* @throws Exception
*/
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
{
RightinfoForm rightform = (RightinfoForm) form;
RightinfoMgr right = new RightinfoMgr();
HttpSession session = request.getSession();
String staffId = (String) session.getAttribute("staffId");
String rightStaffId = request.getParameter("staff_id");
right.setStaff_id(rightStaffId);
right.setMenu_id(rightform.getMenu_id());
right.setStart_date(rightform.getStart_date());
right.setEnd_date(rightform.getEnd_date());
right.setRight_attr(rightform.getRight_attr());
right.setRsrv_str1(rightform.getRsrv_str1());
right.setRsrv_str2(rightform.getRsrv_str2());
right.setRsrv_str3(rightform.getRsrv_str3());
right.setRsrv_str4(rightform.getRsrv_str4());
right.setRsrv_str5(rightform.getRsrv_str5());
right.setRsrv_str6(rightform.getRsrv_str6());
right.setRsrv_str7(rightform.getRsrv_str7());
right.setRsrv_str8(rightform.getRsrv_str8());
right.setRsrv_str9(rightform.getRsrv_str9());
right.setRsrv_str0(rightform.getRsrv_str0());
right.setIn_staff_id(staffId);
right.setRemark(rightform.getRemark());
String result = right.AddRightInfo();
request.setAttribute("result",result);
request.setAttribute("rightStaffId",rightStaffId);
request.setAttribute("order","28");
return mapping.findForward("error");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -