image tag
This tag renders a DataSet image file. If the var tag is present, the image is not rendered but the url is placed into the var variable for use as a background.
Attribute |
Notes |
id
|
|
file
|
|
style
|
|
class
|
|
title
|
|
alt
|
|
test
|
|
width
|
|
height
|
|
cache
|
|
src
|
|
embed
|
|
base64
|
|
contentType
|
|
usemap
|
|
border
|
|
var
|
|
onerror
|
|
Sample:
<c:image file="${fileId}" height="100" width="100" title="Image 1" alt="image1"/>
<c:image file="${fileId}" height="100" width="100" title="Image 1" alt="image1" cache="false"/>
<c:image file="${file.file1}"/>
<c:image base64="${base64}" contentType="${contentType}" embed="true"/>
<c:image file="${file.file1}" var="imgUrl"/>
<div style="background:url(${imgUrl})"></div>
Note:
For Data URI (base64 syntax) the following should be considered:
Internet Explorer 8 has a 32KiB limitation.
Internet Explorer 9 does not have 32KiB limitation and allowed in broader elements.
See http://en.wikipedia.org/wiki/Data_URI_scheme