Custom JSP taglib. This taglib lets you add labels to you HTML pages. These labels are similar to well-known GUI elements in .NET or any Windows API. So labels are named objects with the ability to change value (label, caption) in run-time. You have to define labels within of HTML forms or within of form tag. For example:
<%@ taglib uri="taglib.tld" prefix="lb" %> <form> ... <lb:label name="label1" foreground="red" background="#FFFFF0">Test</lb:label> ... </form> and you will get some like this:
and this label is not a static HTML text. You may read current value
in your server-side code:
request.getParameter("name_for_your_label") E.g. for the above mentioned example: request.getParameter("label1"). You may change also this value with JavaScript:
You may allow edit mode for labels:
<lb:label name="label2" background="#FFFFF0" edit="true">Test1</lb:label>
Tags are: label Body tag. Defines a label in your HTML code. Tag's body describes current value (caption). Parameters are: 1) name Optional parameter. Describes label's name
for downloading: Library: labeltag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|