title: Getting attribute value through constant variable - JSTL
body: <p>In my project, I set up the <code>Constant</code> class like this </p>
  
  <pre><code>class Constant {
      public static final String PARA = "para";
  
      public Integer getPARA () {
          return PARA;
      }
  }
  </code></pre>
  
  <p>in order to access the constant from the jsp through <code>el</code></p>
  
  <pre><code>&lt;!-- test.jsp --&gt;
  &lt;jsp:useBean id="cons" class="com.test.Constant" scope="session"/&gt;
  
  ...
  ${cons.PARA}
  </code></pre>
  
  <p>Now, in my java code, I set an attribute for that constant </p>
  
  <pre><code>// foo.java
  request.setAttribute(Constant.PARA, "this is a param");
  </code></pre>
  
  <p>To access that attribute in the jsp, we could do  <code>${para}</code> but how can I access the attribute value ("this is a param") through that constant variable <code>cons.PARAM</code> ? In short, how can we convert the following code into jstl ?</p>
  
  <pre><code>&lt;%=request.getAttribute(Constant.PARA)%&gt;
  </code></pre>