Copy tag ver. 1.7

    Custom JSP tag. Tag Copy saves own body in the page (request, session, application) scope variable. In other words it is similar to clipboard. You may save (copy) some content and use (paste) your output later for any post-processing (log data, email them etc.). For example:

<%@ taglib uri="taglib.tld" prefix="def" %>
<!-- save content in the page scope variable A -->
<def:Copy id="A">
   ...<!-- your JSP code is here -->

Client will see: <%=A%>


Tags are:


This tag puts own body into page (request,session,application) scope variable. Parameters are:

1) id variable name
2) scope Optional parameter. Describes scope for your variable. Possible values are page,request,session,application. Default value is page.
3) print Optional parameter. Possible values are true or false. If this value is true body will be printed, otherwise tag just saves data. Default value is true.

for downloading:

 Library: copytag.jar     Description: taglib.tld

 © Coldbeans      Comments?

 See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: