title: Evaluate JSTL from a session bean
body: <p>I've got a servlet providing a JSP and I'm trying to output custom tags from a string from my session bean. The custom tags get printed out without being evaluated. If I add my custom tags to JSP it works like a charm but I cannot dynamically add them from the session bean.
  I've tried the outputting straight from the session bean:</p>
  
  <pre><code>&lt;%= sessionBean.getTags() %&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;% out.print(sessionBean.getTags()); %&gt;
  </code></pre>
  
  <p>I've tried creating a custom tag that accepts a string as it's attribute:</p>
  
  <pre><code>public class JSTLOut extends TagSupport {
     String value;
     public void setValue(String value) {
        this.value = value;
     }
     public int doStartTag() {
        try {
           JSPWriter out = pageContext.getOut();
           if (value != null) {
              out.print.(value);
           }
        catch(IOException ioe) {
           // TODO: handle
        }
        return(SKIP_BODY);
     }
  }
  </code></pre>
  
  <p>I've tried using <a href="http://www.servletsuite.com/servlets/evaltag.htm" rel="nofollow">Eval taglib</a></p>
  
  <p>This taglib caused a LinkageError, obviously not playing nice with websphere. Could anyone point me in the right direction?</p>