?? rightlistaction.java
字號(hào):
package com.ICT.AFC.user.actions;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import javax.servlet.ServletContext;
import javax.sql.DataSource;
import com.ICT.AFC.DB.DB;
import com.ICT.AFC.user.beans.*;
public class rightListAction
extends Action {
public ActionForward execute(ActionMapping Mapping,
ActionForm Form,
HttpServletRequest Request,
HttpServletResponse Response) throws Exception {
HttpSession session = Request.getSession();
ServletContext context = servlet.getServletContext();
DataSource dataSource = (DataSource) context.getAttribute("contract");
String PageForward = "rightList";
DB db = new DB(dataSource);
Request.setAttribute("RIGHTLIST", RightOperate.SearchRight(db));//權(quán)限集合放置Request中方便頁(yè)面顯示
db.close();
return (Mapping.findForward(PageForward));
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -