<p>I have a class that defines the names of various constants, e.g.</p>

<pre><code>class Constants {
    public static final String ATTR_CURRENT_USER = "current.user";
}
</code></pre>

<p>I would like to use these constants within a JSP <strong>without</strong> using Scriptlet code such as:</p>

<pre><code>&lt;%@ page import="com.example.Constants" %&gt;
&lt;%= Constants.ATTR_CURRENT_USER %&gt;
</code></pre>

<p>There appears to be a tag in the Apache <a href="http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/index.html#useConstants" rel="noreferrer">unstandard</a> taglib that provides this functionality. However, I cannot find any way to download this taglib. I'm beginning to wonder if it's been deprecated and the functionality has been moved to another (Apache) tag library?</p>

<p>Does anyone know where I can get this library, or if it's not available, if there's some other way I can access constants in a JSP without using scriptlet code?</p>

<p>Cheers,
Don</p>

Why do you want to print the value of the constant on the JSP? Surely you are defining them so that in the JSP you can extract objects from the session and request before you present them?
```
<%@ page import="com.example.Constants" %>
<%@ page import="com.example.model.User" %>
<%
User user = (User) session.getAttribute(Constants.ATTR_CURRENT_USER);
%>

<h1>Welcome <%=user.getFirstName()%></h1>
```