10 May
2009
10 May
'09
8:57 a.m.
And without a request around? I need this for the indexer... that's getting more trick. I guess I could store the context in the plugin statics if I was sure a request would use it first but I am rather sure of the contrary: the indexer will fire first. Is there a way I can access the servlet-context from some xwiki or context objects? thanks in advance paul Le 08-avr.-09 à 11:21, Sergiu Dumitriu a écrit :
But, erm, dumb question, how can I get the ServletContext? I found how to get the request and response but not the servlets or context yet.
getRequest().getSession().getServletContext()