JspException e = new JspException
(messages.getMessage("imgTag.src"));
RequestUtils.saveException(pageContext, e);
throw e;
}
ApplicationConfig config = (ApplicationConfig)
pageContext.getRequest().getAttribute(Action.APPLICATION_KEY);
HttpServletRequest request =
(HttpServletRequest) pageContext.getRequest();
if (config == null) {
return (request.getContextPath() + this.page);
} else {
return (request.getContextPath() + config.getPrefix() +
this.page);
}
}
// Deal with an indirect context-relative page that has been specified
if (this.pageKey != null) {
if ((this.src != null) || (this.srcKey != null)) {
JspException e = new JspException
(messages.getMessage("imgTag.src"));
RequestUtils.saveException(pageContext, e);
throw e;
}
ApplicationConfig config = (ApplicationConfig)
pageContext.getRequest().getAttribute(Action.APPLICATION_KEY);
HttpServletRequest request =
(HttpServletRequest) pageContext.getRequest();
if (config == null) {
return (request.getContextPath() +
RequestUtils.message(pageContext, getBundle(),
getLocale(), this.pageKey));
} else {
return (request.getContextPath() + config.getPrefix() +
RequestUtils.message(pageContext, getBundle(),
getLocale(), this.pageKey));
}
}