title: How can I give EL expressions as parameters in nested jsp 2.0 tags?
body: <p>I want to do something like this to call a JSP 2.0 tag:</p>
  
  <pre><code>&lt;mytags:foo abc="&lt;%=def%&gt;"&gt;
    &lt;mytags:bar ghi="&lt;%=jkl%&gt;"/&gt;
  &lt;/mytags:foo&gt;
  </code></pre>
  
  <p>Where Strings <code>def</code> and <code>jkl</code> are defined earielr in the jsp file.  Suppose my tag files look like this:</p>
  
  <p><code>foo.tag</code>:</p>
  
  <pre><code>&lt;%@ tag body-content="scriptless" %&gt;
  &lt;%@ attribute name="abc" required="true" %&gt;
  &lt;div class="${abc}"&gt;
    &lt;jsp:doBody/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><code>bar.tag</code>:</p>
  
  <pre><code>&lt;%@ tag body-content="scriptless" %&gt;
  &lt;%@ attribute name="ghi" required="true" %&gt;
  &lt;div&gt;${ghi}&lt;/div&gt;
  </code></pre>
  
  <p>I want the output to look like this:</p>
  
  <pre><code>&lt;div class="def"&gt;
  &lt;div&gt;jkl&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>(assuming the variables <code>def</code> and <code>jkl</code> were initialized to <code>def</code> and <code>jkl</code>, respectively, in the calling JSP file.)</p>
  
  <p>The outer tag gets its attribute just fine (<code>&lt;div class="def"&gt;</code>) but the inner one fails.</p>
  
  <p>Is this possible?  I am getting errors that jkl cannot be resolved.</p>