what is the proper way to handle an exception in formBackingObject of my subclass of SimpleFormController?
currently I retrieve some data to be displayed in this method and the data layer may throw an exception. I would like to catch it and then display it on a page. i.e.:
protected Object formBackingObject(HttpServletRequest request) throws Exception {
String orderId = RequestUtils.getRequiredStringParameter(request, "orderId");
try {
return (Order)service.getOrder(orderId);
} catch (LockedException e) {
//what to do now?
}
}


Reply With Quote