You may use this custom JSP taglib together with Secure Link package.
Taglib used to deal with secure links (add, delete, list).
For example:
<%@ taglib uri="taglib.tld" prefix="s" %> <s:addLink source="/a/12345678.jsp" target="/mypage.jsp" seconds="600"/> In this case all requests to /a/12345678.jsp will be forwarded to /mypage.jsp and the source link will be valid for 10 minutes. Also you can print existing links:
<s:forEachLink> Source URI:<%=sourceURI%> Target URI:<%=targetURI%> Created:<%=created%> Expired:<%=expired%> Hits to date:<%=hits%> Alloved hits:<%=maxHits%> </s:forEachLink> Tags are: addLink Tag creates a new link. Parameters are: 1) source describes a source URI
removeLink Tag removes existing link. Parameters are: 1) source describes a source URI
forEachLink Body tag executes own body for the each exiting link. Parameters are: none Within the body of this tag you may use nested variables describes the current link:
for downloading: Library: securelinkflt.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|