Portlet Preferences
Tag getPreference


Description

Returns the value of a given preference. Use this tag to get the value of a preference, given the name of the preference. The tag may also supply a default value for the value of the tag. If the named preference does not exist, this tag returns the supplied default value. If the named preference has more than one value, returns the first value (no guarantee of order).


Tag Information
Tag Classcom.bea.portlet.prefs.jsp.tags.GetPreferenceTag
TagExtraInfo Classcom.bea.portlet.prefs.jsp.tags.GetPreferenceTagExtraInfo
Body ContentJSP
Display NameGet Preference

Attributes
NameRequiredRequest-timeDescription
nametruetrue Name of the preference.
defaultValuefalsetrue Default value of the preference. If the given preference has no value, returns the default value. If the default value is not specified, uses an empty string as the default.
varfalsetrue Variable to assign the value to. This tag sets a java.lang.String value in the PageContext with the given var name. If this attribute is not set, writes the value of the preference to the underlying response.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator.

Copyright © 2008 BEA Systems, Inc. All Rights Reserved.