FileDocCategorySizeDatePackage
SecureBaseAction.javaAPI DocExample1266Thu Jan 01 19:15:44 GMT 2004org.springframework.samples.jpetstore.web.struts

SecureBaseAction

public abstract class SecureBaseAction extends BaseAction

Fields Summary
Constructors Summary
Methods Summary
protected abstract org.apache.struts.action.ActionForwarddoExecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)

public org.apache.struts.action.ActionForwardexecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)

    AccountActionForm acctForm = (AccountActionForm) request.getSession().getAttribute("accountForm");
    if (acctForm == null || acctForm.getAccount() == null) {
      String url = request.getServletPath();
      String query = request.getQueryString();
      if (query != null) {
        request.setAttribute("signonForwardAction", url+"?"+query);
      }
			else {
        request.setAttribute("signonForwardAction", url);
      }
      return mapping.findForward("global-signon");
    }
		else {
      return doExecute(mapping, form, request, response);
    }