title: JSP custom or JSTL tag inside another custom tag
body: <p>I have made a custom tag, to verify some user session state. But, <code>&lt;c:url&gt;</code> is not working in my custom tag body. JSP:</p>
  
  <pre><code>&lt;a href="&lt;c:url value="/user/logout/"/&gt;"&gt;Logout&lt;/a&gt; &lt;!-- THIS IS OK! --&gt;
  &lt;bs:ifaccount logged="true"&gt;
     &lt;--  THIS JUST FLUSHES &lt;C:URL VALUE=... TO WEB BROWSER --&gt;
     &lt;a href="&lt;c:url value="/user/logout/"/&gt;"&gt;Logout&lt;/a&gt; 
  &lt;/bs:ifaccount&gt;
  </code></pre>
  
  <p>Tag declaration:</p>
  
  <pre><code>&lt;tag&gt;
      &lt;name&gt;ifaccount&lt;/name&gt;
      &lt;tag-class&gt;bs.tags.IfLoggedTagHandler&lt;/tag-class&gt;
      &lt;body-content&gt;tagdependent&lt;/body-content&gt;
      &lt;attribute&gt;
         &lt;name&gt;logged&lt;/name&gt;
         &lt;type&gt;java.lang.Boolean&lt;/type&gt;
         &lt;required&gt;true&lt;/required&gt;
      &lt;/attribute&gt;
  &lt;/tag&gt;
  </code></pre>
  
  <p>Tag is implemented with <strong>SimpleTagSupport &amp; getJspContent().invoke(null)</strong></p>