java - Seam 2, how to get the servletcontext? -


i'm in seam 2. how can servlet context?

i can this: servletcontexts servletcontexts = servletcontexts.getinstance();

but not servletcontext.

depending @ moment trying servletcontext:

  • during httpservletrequest request: servletcontexts.instance().getrequest().getservletcontext().

  • during jsf request: (servletcontext)facescontext.getcurrentinstance().getexternalcontext().

  • during application startup: servletlifecycle.getservletcontext().


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -