1 package org.nextime.ion.backoffice.action.resource; 2 3 4 import java.io.IOException ; 5 6 import javax.servlet.ServletException ; 7 import javax.servlet.http.HttpServletRequest ; 8 import javax.servlet.http.HttpServletResponse ; 9 import org.apache.struts.action.ActionForm; 10 import org.apache.struts.action.ActionForward; 11 import org.apache.struts.action.ActionMapping; 12 import org.nextime.ion.backoffice.action.BaseAction; 13 import org.nextime.ion.backoffice.bean.Resources; 14 15 16 17 public class ResourceMenuAction extends BaseAction { 18 19 public ActionForward perform(ActionMapping mapping, 20 ActionForm form, 21 HttpServletRequest request, 22 HttpServletResponse response) 23 throws IOException , ServletException { 24 25 checkUser(request); 27 28 try { 30 request.setAttribute("resources",Resources.getResourceXmlBeans(servlet)); 31 } 32 catch( Exception e ) { 33 e.printStackTrace(); 34 } 35 36 return (mapping.findForward("view")); 38 39 } 40 41 } 42 | Popular Tags |