Referer filter taglib ver. 1.3

    Custom JSP taglib. Lets you output referrers accumulated by Referer filter. For example this code prints up to 20 last 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).

getSize

Tag lets you print or save in the page scope variable list's of referrers size. Parameters are:

1) id Optional parameter. Describes a name for the page scope variable (type is java.lang.Integer). By default is empty (tag just prints data).

for downloading:

Library: refflt.jar    Description: taglib.tld

© Coldbeans      Comments?

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

Also in Coldtags: