Adding hsql warning message in login page

This commit is contained in:
Pablo Luna
2011-04-01 19:50:55 +01:00
parent 8ea733fc55
commit e722fdd720
6 changed files with 18 additions and 17 deletions

View File

@@ -30,6 +30,7 @@ import java.util.Calendar;
public class LoginController
extends BaseMultiActionController {
private String driver;
protected ModelAndView handleNoSuchRequestHandlingMethod(NoSuchRequestHandlingMethodException noSuchRequestHandlingMethodException, HttpServletRequest request, HttpServletResponse httpServletResponse) throws Exception {
// Reload user only in case of beeing necessary...
@@ -41,6 +42,7 @@ public class LoginController
} else {
result = new ModelAndView("login");
result.addObject("isHsql", driver.indexOf("hsql")!=-1);
}
return result;
@@ -59,4 +61,12 @@ public class LoginController
return new ModelAndView("forward:/c/mymaps.htm");
}
public void setDriver(String driver) {
this.driver = driver;
}
public String getDriver() {
return driver;
}
}