display Tag Library Documentation

Version: 1.0 Description: Java tag library for displaying server-side generated and manipulated images. Contact us: fabianofranz at users.sourceforge.net.
Tags : image, filter, resize, subimage, barcode

Tag Reference

image

The basic tag for JImageTaglib. All the other tags will be placed on this tag's body. The "src" parameter will be the relative path to the image (without your application context name). An example: the parameter for an image placed on http://localhost/application/images/test.gif will be /images/test.gif. The other parameters follow html tag "img" parameters.
Body Content: jsp

Attributes

NameRequiredRuntime Expression Evaluation
srctruetrue
namefalsetrue
borderfalsetrue
altfalsetrue
cssStylefalsetrue
top

filter

Use this tag inside an image tag to apply a filter effect to the image. The "filter" parameter is the filter class name, like this: "net.sourceforge.jimagetaglib.filter.BlurFilter".
Body Content: empty

Attributes

NameRequiredRuntime Expression Evaluation
filtertruetrue
top

resize

Use this tag inside an image tag to resize the image. The ways to resizing an image is the following: - Set the "width" AND "height" parameters; - Set the "width" OR "height" parameter (the other one will be resized to keep image's aspect); - Set the "max" parameter. The major dimension (width or height) will be resized do the specified dimension, and the other on will be resized to keep image's aspect. You can't specify "max" AND ("width" AND/OR "height") parameters.
Body Content: empty

Attributes

NameRequiredRuntime Expression Evaluation
widthfalsetrue
heightfalsetrue
maxfalsetrue
top

subimage

Use this tag inside an image tag to show only a part of the image, beside the following rule for creating a "rectangle" area: - "x" parameter is the initial x image's position; - "y" parameter is the initial y image's position; - "width" parameter is the width from x,y; - "height" parameter is the height from x,y. Take care: if you set parameters that results in a rectangle that goes out of image's frontiers, the image will not be rendered.
Body Content: empty

Attributes

NameRequiredRuntime Expression Evaluation
xtruetrue
ytruetrue
widthtruetrue
heighttruetrue
top

barcode

Generates a barcode for the specified code.
Body Content: empty

Attributes

NameRequiredRuntime Expression Evaluation
codetruetrue
heightfalsetrue
namefalsetrue
borderfalsetrue
altfalsetrue