elimintated controller/handler adapter duplication

made spring beanish with default constructor
This commit is contained in:
Keith Donald
2008-04-23 16:19:37 +00:00
parent 492c9f2246
commit f780171a1c

View File

@@ -13,13 +13,13 @@ public class BookingFlowHandler extends AbstractFlowHandler {
@Override
public String handleExecutionOutcome(FlowExecutionOutcome outcome, HttpServletRequest request,
HttpServletResponse response) {
return "hotels/index";
return "/hotels/index";
}
@Override
public String handleException(FlowException e, HttpServletRequest request, HttpServletResponse response) {
if (e instanceof NoSuchFlowExecutionException) {
return "hotels/index";
return "/hotels/index";
} else {
throw e;
}