jackie said:
How can I make use of java variable in taglib in a JSP ?
Others have given you the essentials. Use something like this:
<c
ut value="<%= number %>"/>
Only thing is that if you check c.tld then you'll note that
rtexprvalue (run time expression value) is set to false. You
therefore require the c-rt.tld file.
Have something like this at the top of your page:
<%@ taglib uri="c-rt" prefix="c" %>
That would require an entry like this in WEB-INF/web.xml:
<taglib>
<taglib-uri>c-rt</taglib-uri>
<taglib-location>/WEB-INF/tlds/c-rt.tld</taglib-location>
</taglib>
I stick TLDs in a subdirectory underneath WEB-INF so you'll
have to change the above to correspond to your particular
structure.