StringBuffer url = new StringBuffer();
HttpServletRequest request =
(HttpServletRequest) pageContext.getRequest();
if (forward != null) {
ForwardConfig forwardConfig =
moduleConfig.findForwardConfig(forward);
if (forwardConfig == null) {
throw new MalformedURLException(messages.getMessage(
"computeURL.forward", forward));
}
// **** removed - see bug 37817 ****
// if (forwardConfig.getRedirect()) {
// redirect = true;
// }
if (forwardConfig.getPath().startsWith("/")) {
url.append(request.getContextPath());
url.append(RequestUtils.forwardURL(request, forwardConfig,
moduleConfig));
} else {
url.append(forwardConfig.getPath());
}
} else if (href != null) {
url.append(href);
} else if (action != null) {
url.append(instance.getActionMappingURL(action, module,