We have a V7 class that is called when a content instance is saved. The class requires the ServletContext and this is retrieved in the following way in V7:
ServletContext ctx = request.getSession().getServletContext();
- where the request is a HttpServletRequest object
I am currently trying to re-write this class for V8 and as the content instance is saved in a different fashion, I am unsure how to retrieve the ServletContext object.
On save, the object passed to the save function in V8 is the Vignette Request object. From there I can use the following statement:
Context context = request.getContext();
However, again, this is a Vignette Context object. Is there any way to retrieve the ServletContext object from the Vignette Context object?
Thanks in advance....