Custom JSP tag. Renders a HTML hyperlink (<a> tag) to the specified
URL. Tag supports sessions, so URL rewriting will be added automatically.
You may use this tag as a standard replacement for HTML <a> tag in your JSP pages. This tag also adds automatically
a standard icon after the hyperlink depends on the link (external link, popup) or the file type your link points to. For example:
<%@ taglib uri="taglib.tld" prefix="go" %> <html> ... <go:iconlink href="http://www.server.com/nextpage.mp3"/> <go:iconlink href="http://www.server.com/prevpage.htm" target="_blank">Link</go:iconlink> ... </html> and you will get some like this:
http://www.server.com/nextpage.mp3
You can set a text for your hyperlink as a tag's body or through the parameter text or through
the special tag setText. Tag setParameter lets you define a GET parameter for the link
(value will be encoded automatically):
<%@ taglib uri="taglib.tld" prefix="go" %> <html> ... <go:iconlink href="http://www.server.com/nextpage.htm"> <go:setText>Next page</go:setText> <go:setParameter name="A">value for A</go:setParameter> <go:setParameter name="B">value for B</go:setParameter> </go:iconlink> ... </html> Tags are: link Body tag renders HTML (WML) hyperlink. Parameters are: 1) href Optional parameter. Describes an URL. By default
tag will use the current URL (request URI).
setText Body tag defines a text for hyperlink. Parameters are: none setParameter Body tag defines a parameter for hyperlink. Parameters are: 1) name Describes a name for your parameter for downloading: Library: ilinktag.jar Description: taglib.tld icons: See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|