title: how to set some database values to application scope at startup in struts2?
body: <p>I want to set some values at application scope.</p>
  
  <p>I tried it by using interceptors <code>init()</code> method. But it gives <code>null</code> pointer at below code:</p>
  
  <pre class="lang-java prettyprint-override"><code>ServletActionContext.getContext().getApplication().put("ApplicationName", applName);
  </code></pre>
  
  <p>Want access to this field in all sessions. </p>