/** * <p>Process a forward requested by this mapping (if any). Return * <code>true</code> if standard processing should continue, or * <code>false</code> if we have already handled this request.</p> * * @param request The servlet request we are processing * @param response The servlet response we are creating * @param mapping The ActionMapping we are using */ protected boolean processForward(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException, ServletException { // Are we going to processing this request? String forward = mapping.getForward(); if (forward == null) { return (true); } internalModuleRelativeForward(forward, request, response); return (false); }
/** * <p>Select and cache the <code>ActionForward</code> for this * <code>ActionConfig</code> if specified.</p> * * @param actionCtx The <code>Context</code> for the current request * @return <code>false</code> so that processing continues * @throws Exception if thrown by the Action class */ public boolean execute(ActionContext actionCtx) throws Exception { // Skip processing if the current request is not valid Boolean valid = actionCtx.getFormValid(); if ((valid == null) || !valid.booleanValue()) { return (false); } // Acquire configuration objects that we need ActionConfig actionConfig = actionCtx.getActionConfig(); ModuleConfig moduleConfig = actionConfig.getModuleConfig(); ForwardConfig forwardConfig = null; String forward = actionConfig.getForward(); if (forward != null) { forwardConfig = forward(actionCtx, moduleConfig, forward); if (LOG.isDebugEnabled()) { LOG.debug("Forwarding to " + forwardConfig); } actionCtx.setForwardConfig(forwardConfig); } return (false); }
if ((command == null) && (actionConfig.getForward() == null) && (actionConfig.getInclude() == null)) { LOG.error("no type or command for " + actionConfig.getPath());
actionConfig.setExtends(strutsAction.inherit()); if (actionConfig.getForward() == null && actionConfig.getInclude() == null) { actionConfig.setType(actionClass.getName());
config.setParameter(convertParam(orig.getParameter(), vars)); config.setAttribute(convertParam(orig.getAttribute(), vars)); config.setForward(convertParam(orig.getForward(), vars)); config.setInclude(convertParam(orig.getInclude(), vars)); config.setInput(convertParam(orig.getInput(), vars));
if (getForward() == null) { setForward(config.getForward());
config.setParameter(convertParam(orig.getParameter(), vars)); config.setAttribute(convertParam(orig.getAttribute(), vars)); config.setForward(convertParam(orig.getForward(), vars)); config.setInclude(convertParam(orig.getInclude(), vars)); config.setInput(convertParam(orig.getInput(), vars));