1 package com.sslexplorer.core.actions; 2 3 import javax.servlet.http.HttpServletRequest ; 4 import javax.servlet.http.HttpServletResponse ; 5 6 import org.apache.struts.action.ActionForm; 7 import org.apache.struts.action.ActionForward; 8 import org.apache.struts.action.ActionMapping; 9 10 import com.sslexplorer.core.actions.AuthenticatedAction; 11 import com.sslexplorer.core.forms.GetRSSFeedForm; 12 import com.sslexplorer.security.SessionInfo; 13 14 15 21 public class GetRSSFeedAction extends AuthenticatedAction { 22 23 26 public int getNavigationContext(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { 27 return SessionInfo.MANAGEMENT_CONSOLE_CONTEXT; 28 } 29 30 33 protected ActionForward onExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, 34 HttpServletResponse response) throws Exception { 35 ((GetRSSFeedForm)form).init(request.getParameter("feed")); 36 return mapping.findForward("display"); 37 } 38 39 } 40 | Popular Tags |