Custom JSP taglib lets you provide the password protected pages. You can set user name/password pair required for access to some JSP page right in JSP code.
Taglib will popup the login dialog and opens/prohibits access to your page. For example:
<%@ taglib uri="taglib.tld" prefix="p" %> <p:PasswordProtect realm="Protected" name="guest" password="12345"/> ... // rest of your JSP (HTML) code Just use this taglib at the beginning (on the top) of your page. Tags are: PasswordProtect Body tag lets you allow access to your page for the authorized visitors only. Parameters are: 1) name Describes a valid user name.
for downloading: Library: passfiletag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|