Attributes |
Name | Required | Request-time | Type | Description |
fieldName | true | true | java.lang.String |
name of the field this tag references to
|
defaultValue | false | true | java.lang.String |
default field name to use if the specified
field is empty.
"Filesystem blob" example:
<img src="<db:blobURL
fieldName="THUMBNAIL"
defaultValue="myImage.jpg"/>" border="0"
width="xx" height="yy">
Developers Note:
this attribute (up to now) is not used for
"database blob" data, works only for "Disk
Blob" data.
Update 03/2004:
works now for BLOB data as well (if BLOB is
not in classic mode and nameField is used)
|
nameField | false | true | java.lang.String |
this optional attribute may be used to tell
the fileservlet in which table column
(field) the name of the file is stored.
This is (only) needed if you use the new
(default) BLOB model which does not rely on
FileHolder anymore to associate files and
their names. Hence, the association between
file and name must be captured by other
means: During upload we use the
BlobInterceptor, and during download we use
this "nameField" argument.
|