The Common-Controls Tag Library

<base:image>

The tag generates an HTML-image element.

The image tag can also be used in conjunction with other tags of the framework. The surrounding tag is responsible in this case for the depiction of the image. Thus, the image is not directly written into the HTML-page.

The tag-handler of the surrounding tag must implement the com.cc.framework.taglib.ImageContainerTag Interface.


Tag class: ImageTag
 

[ Syntax ]

Standard Syntax
<base:image
[ alt = "String" ]
[ height = "String" ]
[ imagemap = "String" ]
[ name = "String" ]
[ property = "String" ]
[ resource = "resource key" ]
[ src = "String" ]
[ style = "String" ]
[ styleClass = "String" ]
[ styleId = "String" ]
[ tooltip = "String" ]
[ value = "String" ]
[ width = "String" ]
/>
 

[ Attributes ]

AttributeTypeDescriptionReq.RTExp
altString Specifies the alternative text that is output when the display of images in the browser has been disabled.  
heightString Specifies the height of the image.  
imagemapString Specifies the name of an Imagemap which must be saved in the request. The values that the ImageProperty returns are mapped to the entries of this Imagemap. The mapping is done with the help of the regular expression, which is assigned to every entry of the Imagemap.

Annotation: Under the name, there must be an Imagemap saved in the request.

 
nameString Specifies the name of the Java-Bean. The Java-Bean must be stored in the given scope.

When the tag is surrounded by a Struts <html:form> tag, no Bean Name need be specified. In this case, the Java-Bean is drawn via a property of the Struts Form Bean.

Annotation: A valid Java identifier must be given.

 
propertyString Specifies the name of the property using which the Java-Bean is to be accessed. This is generally only necessary when the Java-Bean is associated with a Struts Form Bean.

Annotation: A valid Java identifier must be given.

 
resourceresource key Selects an image resource from the applications resource map  
srcString Specifies the image resource.  
styleString An HTML-style can be directly specified with this attribute.

Annotation: See HTML documentation for the attribute style.

 
styleClassString The HTML-class attribute of the element can be specified with this attribute.

Annotation: See HTML documentation for the attribute class.

 
styleIdString The HTML-id attribute of the element can be specified with this attribute.

Annotation: See HTML documentation for the Attribute id.

 
tooltipString Tooltip text that is shown in a little popup window when the user moves the cursor over the image.

The String will be HTML encoded before output

 
valueString This attribute sets the initial displayed value of the field if it displays a textual or numerical value.

Annotation: See HTML documentation for the attribute value.

 
widthString Specifies the width of the image.  

[ Example ]

Generates a simple image.


<%@ taglib uri="http://www.common-controls.com/cc/tags-base"   prefix="base" %>

<base:image src="/images/user.gif" alt="User"/>