How to dynamically evaluate a tag within a java file?(上個發錯了,重發)

logicgate發表於2005-05-22
If I call a taglib from a JSP with the usual syntax
<prefix:tag1>
, and I want this tag outputs something like the following
<prefix:tag2>
or
<prefix:tag3>
, depends on the attribute value of tag1. But the problem is, the
<prefix:tag2>
will end up written to the browser.

So my question is, how to dynamically evaluate a tag within a java file?

相關文章