com.cc.framework.taglib.svg
Class EmbedTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bycom.cc.framework.taglib.svg.EmbedTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class EmbedTag
extends javax.servlet.jsp.tagext.BodyTagSupport

This tag is used to embedd a SVG stream in a HTML page. The tag inserts the SVG-Stream specified in the tag-body directly in the resulting 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='/cc/session/svgresource.res'
    width='100%' height='200'
    type='image/svg+xml'>

    <embed src='/cc/session/svgresource.res'
       width='100%' height='200'
       type='image/svg+xml'
       pluginspage='http://www.adobe.com/svg/viewer/install/'/>
 </object>
	
The tag uses the Resource-Servlet of the common controls framework. There must be an SVG-Viewer installed on the client system.

Since:
1.0
Version:
$Revision: 1.19 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  java.lang.String height
          Height of the SVG
private  org.apache.commons.logging.Log log
          Commons Logging instance.
private  java.lang.String name
          Name
private  HttpScope scope
          Scope
private static long serialVersionUID
          Serial Version UID
private  java.lang.String width
          Width of the SVG
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
EmbedTag()
          Constructor
 
Method Summary
 int doAfterBody()
           
 void release()
           
 void setHeight(java.lang.String value)
          The height of the SVG-viewer window.
 void setName(java.lang.String value)
          Specifies the name of the Java-Bean.
 void setPageContext(javax.servlet.jsp.PageContext pc)
           
 void setScope(java.lang.String scope)
          This attribute shows the Scope in which the Java-Bean with the actual display data can be found.
 void setWidth(java.lang.String value)
          The width of the SVG-viewer window.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

log

private transient org.apache.commons.logging.Log log
Commons Logging instance.


scope

private HttpScope scope
Scope


name

private java.lang.String name
Name


width

private java.lang.String width
Width of the SVG


height

private java.lang.String height
Height of the SVG

Constructor Detail

EmbedTag

public EmbedTag()
Constructor

Method Detail

setPageContext

public void setPageContext(javax.servlet.jsp.PageContext pc)
See Also:
Tag.setPageContext(PageContext pc)

release

public void release()
See Also:
Tag.release()

doAfterBody

public int doAfterBody()
See Also:
IterationTag.doAfterBody()

setName

public void setName(java.lang.String value)
Specifies the name of the Java-Bean. The Java-Bean must be stored in the given scope.

Parameters:
value - name

setWidth

public void setWidth(java.lang.String value)
The width of the SVG-viewer window. The height may be specified in absolute or percent terms.

Parameters:
value - The width of the SVG-viewer window.

setHeight

public void setHeight(java.lang.String value)
The height of the SVG-viewer window. The height may be specified in absolute or percent terms.

Parameters:
value - The height of the SVG-viewer window.

setScope

public void setScope(java.lang.String scope)
              throws javax.servlet.jsp.JspException
This attribute shows the Scope in which the Java-Bean with the actual display data can be found.

Parameters:
scope - Scope
Throws:
javax.servlet.jsp.JspException - if an invalid Scope is passed as Argument


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.