dbforms
Tag blobURL


This tag generates an URL pointing to a servlet downloading the DISKBLOB referenced by fieldName

Example:
					use cases:
					
						
							rendering an image: <img
							src="<db:diskblob fieldName="pic""/>"
							alt="a picture">
						
						
							rendering a (download-)hyperlink: <a
							href="<db:diskblob
							fieldName="pic""/>">download!</a>
						
					
				


Tag Information
Tag Classorg.dbforms.taglib.DbBlobURLTag
TagExtraInfo ClassNone
Body Contentempty
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
fieldNametruetruejava.lang.String name of the field this tag references to
defaultValuefalsetruejava.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)
nameFieldfalsetruejava.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.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.