From a subclass of com.vaadin.Application, is there a way to get access to ServletConfig, especially to access servlet initialization parameters?
Thanks in advance.
From a subclass of com.vaadin.Application, is there a way to get access to ServletConfig, especially to access servlet initialization parameters?
Thanks in advance.
The servlet configuration parameter ar directly accessible through the Application class using methods
Application.getPropertyNames
and
Application.getProperty
You can also access the ServletContext (and it parameters) in your application init-function like this:
WebApplicationContext appCtx = ((WebApplicationContext) this.getContext());
ServletContext servletCtx = appCtx.getHttpSession().getServletContext();
Fantastic! Thanks for the tip.