You can also get ServletContext from webapp
WebApps.getCurrent().getServletContext();
vincentjian (
2014-10-02 10:37:20 +0800
)editFirst time here? Check out the FAQ!
Hello everyone, I have two web application deployed on same server(tomcat). Out of these two, first one is non ZK application, say App1. Second one is ZK application, say App2. Now my requirement is that, I want to access a instance of custom object, say obj from App1 to App2. Somehow I want to set obj as attribute to servletContext of App1 and then access it in App2. Any idea how to do this ?
Anyway, I found how to do this. ((HttpServletRequest)Executions.getCurrent().getNativeRequest()).getSession().getServletContext(); gives me ServletContext.
You can also get ServletContext from webapp
WebApps.getCurrent().getServletContext();
vincentjian (
2014-10-02 10:37:20 +0800
)edityou this really works ;) good job
Asked: 2014-09-29 08:16:56 +0800
Seen: 23 times
Last updated: Oct 01 '14
sendRedirect hide URL [closed]
Timeout on timeOut on....... [closed]
redirection without "server processing page"
Executions.SendRedirect in the @Init [closed]
How to open new tab in SelectorComposer?
execution.sendRedirect not working in IE9 & IE8
Redirected link showing blank page