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
Name | Required | Runtime Expression Evaluation |
src | true | true |
name | false | true |
border | false | true |
alt | false | true |
cssStyle | false | true |
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
Name | Required | Runtime Expression Evaluation |
filter | true | true |
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
Name | Required | Runtime Expression Evaluation |
width | false | true |
height | false | true |
max | false | true |
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
Name | Required | Runtime Expression Evaluation |
x | true | true |
y | true | true |
width | true | true |
height | true | true |
top
barcode
Generates a barcode for the specified code.
Body Content: empty
Attributes
Name | Required | Runtime Expression Evaluation |
code | true | true |
height | false | true |
name | false | true |
border | false | true |
alt | false | true |