/** * <p>Process an include 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 processInclude(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException, ServletException { // Are we going to processing this request? String include = mapping.getInclude(); if (include == null) { return (true); } internalModuleRelativeInclude(include, request, response); return (false); }
/** * <p>Select and cache the include uri 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 on any error */ public boolean execute(ActionContext actionCtx) throws Exception { // Acquire configuration objects that we need ActionConfig actionConfig = actionCtx.getActionConfig(); // Cache an include uri if found String include = actionConfig.getInclude(); if (include != null) { if (LOG.isDebugEnabled()) { LOG.debug("Including " + include); } actionCtx.setInclude(include); } return (false); } }
String command = actionConfig.getCommand(); if ((command == null) && (actionConfig.getForward() == null) && (actionConfig.getInclude() == null)) { LOG.error("no type or command for " + actionConfig.getPath()); } else {
actionConfig.setExtends(strutsAction.inherit()); if (actionConfig.getForward() == null && actionConfig.getInclude() == null) { actionConfig.setType(actionClass.getName());
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 (getInclude() == null) { setInclude(config.getInclude());
config.setAttribute(convertParam(orig.getAttribute(), vars)); config.setForward(convertParam(orig.getForward(), vars)); config.setInclude(convertParam(orig.getInclude(), vars)); config.setInput(convertParam(orig.getInput(), vars)); config.setCatalog(convertParam(orig.getCatalog(), vars));