Custom JSP tag. Lets you comment (skip) any part of your JSP page.
Any output from the commented body will be suppressed. For example:
<%@ taglib uri="taglib.tld" prefix="rem" %> <rem:comment>
In the same time you may still execute the commented code. So it will let you for example create
some objects, perform server-side actions etc. But all output will be still suppressed. For example:
<rem:comment execute="true"> ... code will be executed, but without any output <% String s="12345"; pageContext.setAttribute("s",s,pageContext.PAGE_SCOPE); out.println(s); %> ... </rem:comment> Object is:<%=pageContext.getAttribute("s",pageContext.PAGE_SCOPE)%> Also you can dynamically switch on/switch off this tag depends on the value of attribute cond:
<rem:comment execute="true" cond="<%=A!=null%>"> ... ... </rem:comment> Tags are: comment Body tag. Comments some part of your page. Attributes are: 1) execute Optional attribute. If this
value is true commented code will be executed. Default value is false.
for downloading: Library: remtag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags. |
Also in Coldtags:
|