com.ivata.mask.web.tag.html
Class ImgTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.apache.struts.taglib.html.BaseHandlerTag
              extended byorg.apache.struts.taglib.html.ImgTag
                  extended bycom.ivata.mask.web.tag.html.ImgTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ImgTag
extends org.apache.struts.taglib.html.ImgTag

The tag inherits everything from its struts equivalent, but it tries to find out the missing size information from the image headers to make client rendering faster.

Since:
ivata masks 0.4 (2003-06-08)
Version:
$Revision: 1.5 $
Author:
Peter Illes
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.taglib.html.ImgTag
action, align, border, contextRelative, height, hspace, imageName, ismap, lowsrc, messages, module, name, page, pageKey, paramId, paramName, paramProperty, paramScope, property, scope, src, srcKey, useLocalEncoding, usemap, vspace, width
 
Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag
accesskey, defaultLocale, indexed, tabindex
 
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
ImgTag()
           
 
Method Summary
 int doEndTag()
           Overridden to null the width and height values to prevent their reuse.
 int doStartTag()
           Overridden to set the value of height and width , when not specified in input parameters.
protected  java.lang.String src()
          Get the src attribute URL.
 
Methods inherited from class org.apache.struts.taglib.html.ImgTag
getAction, getAlign, getBorder, getContextRelative, getHeight, getHspace, getImageName, getIsmap, getLowsrc, getModule, getName, getPage, getPageKey, getParamId, getParamName, getParamProperty, getParamScope, getProperty, getScope, getSrc, getSrcKey, getUsemap, getVspace, getWidth, isContextRelativeSet, isUseLocalEncoding, release, setAction, setAlign, setBorder, setContextRelative, setHeight, setHspace, setImageName, setIsmap, setLowsrc, setModule, setName, setPage, setPageKey, setParamId, setParamName, setParamProperty, setParamScope, setProperty, setScope, setSrc, setSrcKey, setUseLocalEncoding, setUsemap, setVspace, setWidth, url
 
Methods inherited from class org.apache.struts.taglib.html.BaseHandlerTag
getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getIndexed, getLocale, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, lookupProperty, message, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setIndexed, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, 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, setPageContext, setParent
 

Constructor Detail

ImgTag

public ImgTag()
Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException

Overridden to null the width and height values to prevent their reuse.

Returns:
value returned by superclass method.
Throws:
javax.servlet.jsp.JspException - Refer to ImgTag.doEndTag().

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException

Overridden to set the value of height and width , when not specified in input parameters.

Returns:
value returned by superclass method.
Throws:
javax.servlet.jsp.JspException - wraps any exception looking for or accesing the image file

src

protected java.lang.String src()
                        throws javax.servlet.jsp.JspException
Get the src attribute URL.

Returns:
src URL or null if none is applicable.
Throws:
javax.servlet.jsp.JspException - if the URL cannot be calculated.


Copyright © 2001-2005 ivata limited. All Rights Reserved.