In restlet 2.0-M5, from a ServerResource attached to a router used as the
root of a SpringComponent and served from a SpringServerServlet, I had to do
the following to get the ServletContext:
ServletContext servletContext = (ServletContext)
getContext().getServerDispatcher().getContext()
.getAttributes().get("org.restlet.ext.servlet.ServletContext");
Is this the recommended way to get the ServletContext?
Ben
--
View this message in context:
http://n2.nabble.com/Obtaining-ServletContext-in-2-0-M5-tp4100861p4100861.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2426398