|
static void | setLocale (HttpServletRequest request) |
|
◆ service()
void org.turro.elephant.ApplicationFramework.service |
( |
Page |
page | ) |
|
Definition at line 45 of file ApplicationFramework.java.
47 Application app = Application.getApplication();
49 if(IAgreements.checkAgreements(app.getHttpServletRequest(), app.getHttpServletResponse())) {
50 if(app.getHttpSession(
false).getAttribute(
"xp_user") ==
null) {
51 Executions.sendRedirect(
"/user?redir=/app/frame");
52 }
else if(Authentication.isWebapp()) {
54 app.getHttpSession(
false).setMaxInactiveInterval(3 * 60 * 60);
55 Framework frame =
new Framework();
57 if(frame instanceof AfterCompose) {
58 ((AfterCompose) frame).afterCompose();
60 if(frame.getPortalWindows().containsKey(
"welcome")) {
61 frame.addContent(frame.getPortalWindows().get(
"welcome"));
63 Interceptors.executeApp(app, Executions.getCurrent().getParameterMap());
65 Executions.sendRedirect(
"/user");
68 }
catch (IOException ex) {
69 Logger.getLogger(ApplicationFramework.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
static void setLocale(HttpServletRequest request)
◆ setLocale()
static void org.turro.elephant.ApplicationFramework.setLocale |
( |
HttpServletRequest |
request | ) |
|
|
static |
Definition at line 73 of file ApplicationFramework.java.
74 if(request ==
null && org.zkoss.web.fn.ServletFns.getCurrentContext() !=
null) {
75 request = (HttpServletRequest) ServletFns.getCurrentRequest();
78 HttpSession session = request.getSession(
false);
80 session.setAttribute(
"el_label", I_.compatibilityMap());
81 session.setAttribute(
"i_", I_.api());
82 session.setAttribute(
"i", I_.map());
83 session.setAttribute(
"k", I_.byKeyMap());
85 request.setAttribute(
"el_label", I_.compatibilityMap());
86 request.setAttribute(
"i_", I_.api());
87 request.setAttribute(
"i", I_.map());
88 request.setAttribute(
"k", I_.byKeyMap());
The documentation for this class was generated from the following file: