The Common-Controls Tag Library

<svg:svg>

The tag embeds the SVG-Stream provided by a Java Bean in the resultant HTML page.

The SVG-Stream is saved in the ResourceManager for this purpose. On the HTML-page, the following reference to the registered resource is written (see example):

<object data='/mis3/session/orgchart.res' width='1000' height='4000' type='image/svg+xml'> <embed src='/cc/session/orgchart.res' width='1000' height='4000' type='image/svg+xml' pluginspage='http://www.adobe.com/svg/viewer/install/'/> </object>
The tag uses the Resource-Servlet of the CC-Framework. There must be an SVG-Viewer installed on the client system.

Tag class: SvgTag
 

[ Syntax ]

Standard Syntax
<svg:svg
height = "String"
width = "String"
[ name = "String" ]
[ property = "String" ]
[ scope = "{any | page | request | session | application}" ]
/>
 

[ Attributes ]

AttributeTypeDescriptionReq.RTExp
heightString The height of the SVG-viewer window. The height may be specified in absolute or percent terms.

See HTML-Documentation

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.

 
scopeHTTPScope This attribute shows the Scope in which the Java-Bean with the actual display data can be found.
  • any = The Bean is searched for in ever Scope.
  • page = The Bean exists as a local variable in the JSP Page.
  • request = The Bean is in the HTTP-Request.
  • session = The Bean is in the HTTP-Session.
  • application = The Bean is in the Servletkontext.
 
widthString The width of the SVG-viewer window. The height may be specified in absolute or percent terms.

See HTML-Documentation

[ Example ]

Embeds a SVG-resource.


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

<div style="overflow:auto; width:650; height:500">
   <svg:svg scope="session" name="orgchart" width="1000" height="4000"/>
</div>