Custom JSP tag. This taglib lets you define text boxes in your JSP pages.
It is yet another solution for your design - a standalone way for creating a customized area with the rounded corners.
For example:
<%@ taglib uri="taglib.tld" prefix="i" %> <i:InfoBox title="Coldtags suite" size="240"> The largest collection of JSP custom taglibs and Ajax controls <br>See more <a href="http://www.servletsuite.com/jsp.htm" target="_blank">here</a> </i:InfoBox> and you will get this:
As you see the box here contains two areas: title and body. HTML code generated by this tag depends on the predefined graphical files. See the downloading area below. By default tag uses the following CSS settings for boxes in 240 pixels (you can use them as a starting point for your own customization): Box: margin:0 0 4px 0;padding:0;width:240px;background:#FFCC00 url(infobox_b240.gif) no-repeat bottom left; Title: margin:0 0 2px;padding:2px 0 0 6px;border-bottom:2px solid #fff;color:#000000;text-align:left;font-size:100%;text-transform:uppercase;font-weight:bold;background:#66ff33 url(infobox_t240.gif) no-repeat top left; Body: margin:0;padding:0 8px 6px 8px;text-align:left;font-size:80%;line-height:1.2em;color:#000000;text-align:justify; For default settings you can set customized backgrounds. And of course you can provide your own CSS classes. Tags are: InfoBox Body tag. Lets you define a text box in your application. Parameters are: 1) id Optional parameter. Describes a CSS/DHTML ID for the area.
for downloading: Library: infoboxtag.jar Description: taglib.tld
See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|