Referer filter taglib ver. 1.2

    Custom JSP taglib. Lets you output referrers accumulated by Referer filter. For example this code prints last 20 sites our visitors are coming from:
 


<%@ taglib uri="taglib.tld" prefix="r" %>

<r:forEachVisitor counter="20">
 <br>Site is <%=site%> hits: <%=hits%>
</r:forEachVisitor>

Tag forEachVisitor may use nested variables site as a reference to the current site (URL) and hits as a counter for visits. Types are java.lang.String and java.lang.Long.

Tags are:

forEachVisitor

Body tag executes own body for the each record from the list of referrers. Parameters are:

1) counter Optional parameter. Describes a counter: how many records to show. Default value is 20.
2) hostsOnly Optional parameter. Possible values are true or false. If this value is true tag will ignore query strings and output hosts only. Default value is false (tag will output URL's as is).

for downloading:

Library: refflt.jar    Description: taglib.tld

© Coldbeans      Comments?

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