Home > Contents > Index >
Template Tags TOC   |    Alpha TOC   |    Tag Family TOC   |    Purpose TOC   |    Annotated TOC   |    Index 

 

assetset:establishratings

Enumerates the assets in the named set and recalculates the rating for each one according to the rules that apply to it.

Syntax

Parameters

name (required)
Input parameter. Name of the assetset object.

defaultrating (optional)
Input parameter. Default rating for assets that do not have one. If you do not declare a value, unrated assets are assigned a default rating of 50 on a scale of 0-100.

Description

Use this tag is to refresh the ratings of the assets in the set when visitor data that could effect their ratings has changed since the first time the assets' ratings were requested.

If the assetset on which it is invoked is not sufficiently constrained, this tag might take considerable time and memory to return a result. Web designers should take this into account when designing the site, and try to limit the size of assetsets on which this operation is performed.

Ratings are established (refreshed) and stored for all the assets in the set. Assets that return with a value of 0 are deleted from the set.

Note

If all the assets return with a 0 rating, the assetset is empty. Be sure to check the assetset after you use this tag to determine whether the set has assets. For example, define a String variable and compare to 0, and then code an appropriate action if the assetset is empty.

For information about ratings, see the Sites Developer's Guide.

  Home > Contents > Index >

Oracle JSP Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.