Adding hsql warning message in login page
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user