title: How to get sessionScope attributes on JSTL?
body: <p>The task is to retrieve parameters from session via JSTL. The session parameter name is "programId" . </p>
  
  <p>I tried:</p>
  
  <pre><code> &lt;c:if test="${sessionScope.programId != null}" &gt; 
    please execute
    &lt;/c:if&gt;
  </code></pre>
  
  <p>Then I tried: </p>
  
  <pre><code> &lt;c:if test="${sessionScope:programId != null}" &gt; please execute &lt;/c:if&gt;
  </code></pre>
  
  <p>Here I get: The function applicationScope:programId is undefined</p>
  
  <p>On top I have: </p>
  
  <pre><code> &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%&gt;
  </code></pre>
  
  <p>Oracle has in examples:</p>
  
  <p><a href="http://docs.oracle.com/javaee/1.4/tutorial/doc/JSTL5.html">http://docs.oracle.com/javaee/1.4/tutorial/doc/JSTL5.html</a></p>
  
  <pre><code> &lt;c:if test="${applicationScope:booklist == null}" &gt; 
     &lt;c:import url="${initParam.booksURL}" var="xml" /&gt;
     &lt;x:parse doc="${xml}" var="booklist" scope="application" /&gt;
  &lt;/c:if&gt;  
  </code></pre>
  
  <p>where applicationScope can be swapped by sessionScope.</p>
  
  <p>again "trivialism" complexity drives me nuts. Why corp. examples never work?</p>
  
  <p>Thank You Guys,</p>