Browse Source

Fix non-compilable example in mvc ref doc

Issue: SPR-7750
pull/7/head
Chris Beams 14 years ago
parent
commit
5bfeb34b89
  1. 2
      spring-framework-reference/src/mvc.xml

2
spring-framework-reference/src/mvc.xml

@ -1895,7 +1895,7 @@ public class TimeBasedAccessInterceptor extends HandlerInterceptorAdapter { @@ -1895,7 +1895,7 @@ public class TimeBasedAccessInterceptor extends HandlerInterceptorAdapter {
Calendar cal = Calendar.getInstance();
int hour = cal.get(HOUR_OF_DAY);
if (openingTime <= hour < closingTime) {
if (openingTime <= hour && hour < closingTime) {
return true;
} else {
response.sendRedirect("http://host.com/outsideOfficeHours.html");

Loading…
Cancel
Save