Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

reading config parameter from web.xml

Akshay T
6 years ago Jun 09, 2015 4:44am
Johannes Laidler
6 years ago Jun 09, 2015 8:46am

Hi,

in my project i read from my web.xml like this:

String example = VaadinServlet.getCurrent().getServletContext().getInitParameter("example");

web.xml:

<context-param>
    <param-name>example</param-name>
    <param-value>myvalue</param-value>
  </context-param>

 

Akshay T
6 years ago Jun 09, 2015 4:24pm