response.addError(error.getKey(), error.getValue());
}
}
catch (AuthorizationException x)
{
throw new UIControllerException(x);
}
catch (UIControllerException x)
{
throw new UIControllerException(x);
}
}
if (response.getForward() == null)
{
String listingBeanName = (String) request.getParameter("_lm");
BeanRequest uiRequest = new BeanRequest();
uiRequest.setLocale(request.getLocale());
uiRequest.setBean(listingBeanName.replace("_BEAN_.", ""));
Map<String, Object> parameters = new HashMap();
for (Iterator i = request.getParameters().keySet().iterator(); i.hasNext();)
{
String key = (String) i.next();
if (key.startsWith("_lp"))
{
parameters.put(key.substring(3), request.getParameter(key));
}
}
uiRequest.setParameters(parameters);
uiRequest.setUserEnvironment(request.getUserEnvironment());
try
{
BeanAction.execute(uiRequest, response);
}
catch (AuthorizationException x)
{
throw new UIControllerException(x);
}
}
}