RequestUtils.saveException(pageContext, e);
throw e;
}
// Retrieve our application module configuration information
ApplicationConfig config = (ApplicationConfig)
pageContext.getRequest().getAttribute(Action.APPLICATION_KEY);
if (config == null) { // Backwards compatibility hack
config = (ApplicationConfig)
pageContext.getServletContext().getAttribute
(Action.APPLICATION_KEY);
}
// Retrieve the requested object to be exposed
Object object = null;
String selector = null;
if (formBean != null) {
selector = formBean;
object = config.findFormBeanConfig(formBean);
} else if (forward != null) {
selector = forward;
object = config.findForwardConfig(forward);
} else if (mapping != null) {
selector = mapping;
object = config.findActionConfig(mapping);
}
if (object == null) {
JspException e = new JspException
(messages.getMessage("struts.missing", selector));
RequestUtils.saveException(pageContext, e);