Re: Dev - ServletContext not being used in event handlers
Posted by
David E. Jones on
Feb 22, 2006; 6:51am
URL: http://ofbiz.116.s1.nabble.com/Dev-ServletContext-not-being-used-in-event-handlers-tp166919p166920.html
I think we had code in the ControlServlet to put the ServletContext
in a request attribute at one time, but now you can get this through
the session or request (via the session) objects using the
HttpSession.getServletContext() method, so we just leave it to that.
-David
On Feb 21, 2006, at 11:28 PM, Al Byers wrote:
> I was wondering if there was any reason why the ServletContext
> object is
> not set in the event handler (specifically, the JavaEventHandler) and
> set as an attribute in the request object? I could use it in the CMS
> routines for getting content. Sometimes they need to know the
> webSiteId,
> rootDir and https. It was okay when everything was done in the
> viewhandler, but I see a need for this when you have events
> creating the
> response.
>
> -Al
>
> _______________________________________________
> Dev mailing list
>
[hidden email]
>
http://lists.ofbiz.org/mailman/listinfo/dev
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev