📄 findroleaction.java
字号:
package biz.bluesky.pts.action;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import biz.bluesky.pts.service.*;
import java.util.*;
public class FindRoleAction extends BaseAction {
public ActionForward execute(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception{
/**@todo: complete the business logic here, this is just a skeleton.*/
IRoleService roleService = (IRoleService)getServiceBean("RoleService");
List roles = roleService.findRoles();
if(roles.size()>0){
request.setAttribute("roles",roles);
return mapping.findForward("FindRole");
}else{
return mapping.findForward("NoData");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -