Home > Contents > Index >
Retrieves a blob from a table or from the CS-Satellite cache.
<RENDER.SATELLLITEBLOB [ASSEMBLER="uri assembler shortform"] [ASSET="asset instance name
"] [AUTHORITY="authority value"] [BLOBCOL="column name
"] [BLOBHEADER="MIMEtype
"] [BLOBKEY="primaryKeyName
"] [BLOBNOCACHE="true|false"] [BLOBTABLE="blobTable
"] [BLOBWHERE="primaryKeyValue
"] [C="asset type
"] [CACHECONTROL="expirationDateAndTime
"] [CID="asset id
"] [CONTAINER="servlet|portlet"] [CSBLOBID="session variable value"] [FIELD="asset field name
"] [FRAGMENT="fragment value"] [PARENTID="parent to log this blob as a dependency"] [SATELLITE="true|false"] [SCHEME="scheme value"] [SERVICE="HTMLtagName
"] /> [<RENDER.ARGUMENT NAME="argname
" VALUE="argvalue
"/>] </RENDER.SATELLLITEBLOB>
assembler
(optional)
authority
(optional, required if scheme is set) scheme
. URLs are of the form scheme://authority/path?query#fragment
. For most purposes, authority corresponds to host:port
for the given application. Specifying scheme
and authority
allows for fully-qualified URLs to be created, which is useful for sites with multiple domains and in other cases.
service (optional)
service="img src"
. The default value is img src
. blobtable (optional)
blobtable="ImageFile"
.blobkey (required, if blobtable set)
id
.blobwhere (required, if blobtable set)
blobcol (required, if blobtable set)
blobcol="urlpicture"
.blobnocache
(optional)True
or false
. If set to true
, the blob will not be cached on either CS or SS. The default value is false
. c (required, if asset and blobtable not set)
cid (required, if asset and blobtable not set)
asset (optional)
field (required, if blobtable not set)
fragment
(optional)http://www.myhost.com/foo.html#thirdParagraph
.
container
(optional)servlet
should be sufficient. Legal values are servlet
and portlet
.
blobheader (required)
description/extension
. For example, the mimetype for a GIF image is image/gif
.cachecontrol (optional)
csblobid (optional)
img src
service parameter sends a new request to the application server after the browser reads the containing page. BlobServer then verifies if the csblobid
parameter was set. When BlobServer security is set to true and the csblobid
value matches the session variable value, the blob is served. If the values do not match, a security violation is reported and no blob is served.satellite
(optional) true
(Satellite Server URL) and false
(Content Server URL). parentid (optional)
scheme
(optional, required if authority is set)http
or https
. If this is left blank (and authority
is left blank) then the URL will be relative to the current scheme and authority. RENDER.ARGUMENT (optional)
This tag is the CS-Direct equivalent of the CS-Satellite satellite.blob tag, with the following exception:
rendermode
is passed in automatically.asset
or c
/cid
are specified, compositional dependencies are recorded, and the blob will automatically be flushed from cache when the blob is modified. You can use the blobheadername
and blobheadervalue
parameters to specify http headers in the BlobServer response. For example, you can specify the content-type as follows:
blobheadername1="Content-Type" blobheadervalue1="image/gif"
If you want to use http headers to prevent browser caching of BlobServer requests for all browsers, use both HTTP 1.0 and HTTP 1.0 cache control directives. In the following example, the first header (Cache-Control:no-cache) is the HTTP 1.1 directive and the second header (Pragma:no-cache) is the HTTP 1.0 directive.
blobheadername1="Cache-Control" blobheadervalue1="no-cache" blobheadername2="Pragma" blobheadervalue2="no-cache"
To determine how long to cache a page or pagelet, these criteria are evaluated in this order:
cachecontrol
parameter.cachecontrol
, the value in the satellite.blob.cachecontrol.default
property, found in the futuretense.ini
property file, is used.satellite.page.cachecontrol.default
, the value of the expiration
property, located in the satellite.properties
property file, is used.We recommend that the cachecontrol
attribute be set for all blobs. If all blobs will have the same expiry, then consider setting the satellite.blob.cachecontrol.default
property instead. Because the cache is actively managed when compositional dependencies are properly recorded, blobs can be set to never expire. This ensures that they always remain in cache, and the cache manager will ensure that they remain up-to-date..
None.
The example below is in JSP. The XML syntax is analogous. This code creates an HTML <img>
tag. The src
attribute is the blob in the ImageFile table identified through the ID passed in with blobwhere='<%=ics.GetVar("asset:id")%>'
and both its horizontal and vertical spacing are at five pixels:
<render:satelliteblob blobtable="ImageFile" blobkey="id" blobcol="urlpicture" blobwhere='<%=ics.GetVar("asset:id")%>' blobheader='<%=ics.GetVar("asset:mimetype")%>' service="img src"> <render:argument name="alt" value='<%=ics.GetVar("asset:alttext")%>'/> <render:argument name="hspace" value="5"/> <render:argument name="vspace" value="5"/> </render:satelliteblob>
This code does the same, but the cached blob will be invalidated when the corresponding ImageFile asset is changed:
<render:satelliteblob c="ImageFile" field="urlpicture" cid='<%=ics.GetVar("asset:id")%>' blobheader='<%=ics.GetVar("asset:mimetype")%>' service="img src"> <render:argument name="alt" value='<%=ics.GetVar("asset:alttext")%>'/> <render:argument name="hspace" value="5"/> <render:argument name="vspace" value="5"/> </render:satelliteblob>
This code does the same, but uses an already-loaded ImageFile asset instead:
<asset:load name="myasset" type="ImageFile" objectid='<%=ics.GetVar("asset:id")%>' /> <render:satelliteblob asset="myasset" field="urlpicture" blobheader='<%=ics.GetVar("asset:mimetype")%>' service="img src"> <render:argument name="alt" value='<%=ics.GetVar("asset:alttext")%>'/> <render:argument name="hspace" value="5"/> <render:argument name="vspace" value="5"/> </render:satelliteblob>
Home > | Contents > | Index > | ||
![]() |
FatWire XML Tag Reference |