-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello all,
I have to use servletContext in zsript from where how can I get this servletContext.Please help me
Thanks in advance.
Maybe there are better ways, but one way should be:
org.zkoss.web.fn.ServletFns.getCurrentServletContext()
HTH, Maik
ServletFns seems not a good way, since it is for EL (the javadoc says : Providing servlet relevant functions for EL.)
Why do you need get use servletcontext? in exceution you can use getNativeRequest() to get a HttpServletRequest . maybe it is enough for you.
/Dennis
Hello Dennis,
I had to use object of dispatcher in zscript in a service but I got this.Thanks for your reply.
Asked: 2009-02-04 11:57:58 +0800
Seen: 207 times
Last updated: Feb 05 '09