private String resolveModuleRelativePath(ForwardConfig forwardConfig, ServletContext servletContext, HttpServletRequest request) { String prefix = forwardConfig.getModule(); ModuleConfig moduleConfig = ModuleUtils.getInstance().getModuleConfig(prefix, request, servletContext); return RequestUtils.forwardURL(request, forwardConfig, moduleConfig); }
/** * <p>Construct a new instance based on the values of another * ForwardConfig.</p> * * @param copyMe A ForwardConfig instance to copy * @since Struts 1.3.6 */ public ForwardConfig(ForwardConfig copyMe) { this(copyMe.getName(), copyMe.getPath(), copyMe.getRedirect(), copyMe.getModule()); }
private String resolveModuleRelativePath(ForwardConfig forwardConfig, ServletContext servletContext, HttpServletRequest request) { String prefix = forwardConfig.getModule(); ModuleConfig moduleConfig = ModuleUtils.getInstance().getModuleConfig(prefix, request, servletContext); return RequestUtils.forwardURL(request,forwardConfig, moduleConfig); }
/** * <p>Returns the true path of the destination action if the specified forward * is an action-aliased URL. This method version forms the URL based on * the current request; selecting the current module if the forward does not * explicitly contain a module path.</p> * * @param forward the forward config * @param request the current request * @param servlet the servlet handling the current request * @return the context-relative URL of the action if the forward has an action identifier; otherwise <code>null</code>. * @since Struts 1.3.6 */ public static String actionIdURL(ForwardConfig forward, HttpServletRequest request, ActionServlet servlet) { ModuleConfig moduleConfig = null; if (forward.getModule() != null) { String prefix = forward.getModule(); moduleConfig = ModuleUtils.getInstance().getModuleConfig(prefix, servlet.getServletContext()); } else { moduleConfig = ModuleUtils.getInstance().getModuleConfig(request); } return actionIdURL(forward.getPath(), moduleConfig, servlet); }
/** * <p>Construct a new instance based on the values of another ActionForward.</p> * * @param copyMe An ActionForward instance to copy * @since Struts 1.2.1 */ public ActionForward(ActionForward copyMe) { this(copyMe.getName(),copyMe.getPath(),copyMe.getRedirect(),copyMe.getModule()); setContextRelative(copyMe.getContextRelative()); }
/** * <p>Construct a new instance with a {@link ForwardConfig} object to copy * name, path, contextRelative, and arbitrary property values from.</p> * * @param baseConfig the {@link ForwardConfig} to copy configuration * values from */ public ActionRedirect(ForwardConfig baseConfig) { setName(baseConfig.getName()); setPath(baseConfig.getPath()); setModule(baseConfig.getModule()); setRedirect(true); inheritProperties(baseConfig); initializeParameters(); }
/** * <p>Construct a new instance with a {@link ForwardConfig} object * to copy name, path, and contextRelative values from.</p> * * @param baseConfig the {@link ForwardConfig} * to copy configuration values from */ public ActionRedirect(ForwardConfig baseConfig) { setName(baseConfig.getName()); setPath(baseConfig.getPath()); setContextRelative(baseConfig.getContextRelative()); setModule(baseConfig.getModule()); setRedirect(true); initializeParameters(); }
cfg.setCommand(convertParam(fConfigs[x].getCommand(), vars)); cfg.setCatalog(convertParam(fConfigs[x].getCatalog(), vars)); cfg.setModule(convertParam(fConfigs[x].getModule(), vars));