Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
BodyTagSupport
org.apache.struts.taglib.html.BaseHandlerTag
org.apache.struts.taglib.html.ImgTag
public class ImgTag
extends BaseHandlerTag
Field Summary | |
protected String |
|
protected String |
|
protected String |
|
protected String |
|
protected String |
|
protected String |
|
protected String |
|
protected String |
|
protected String |
|
protected static MessageResources |
|
protected String |
|
protected String |
|
protected String |
|
protected String |
|
protected String |
|
protected String |
|
protected String |
|
protected String |
|
protected String |
|
protected String |
|
protected String |
|
protected String |
|
protected boolean | |
protected String |
|
protected String |
|
protected String |
|
Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag | |
accesskey , alt , altKey , bundle , defaultLocale , disabled , doDisabled , doReadonly , errorKey , errorStyle , errorStyleClass , errorStyleId , indexed , locale , log , loopTagStatusClass , loopTagStatusGetIndex , loopTagSupportClass , loopTagSupportGetStatus , messages , onblur , onchange , onclick , ondblclick , onfocus , onkeydown , onkeypress , onkeyup , onmousedown , onmousemove , onmouseout , onmouseover , onmouseup , onselect , readonly , style , styleClass , styleId , tabindex , title , titleKey , triedJstlInit , triedJstlSuccess |
Constructor Summary | |
|
Method Summary | |
int |
|
int |
|
String | |
String |
|
String | |
String |
|
String | |
String | |
String | |
String |
|
String |
|
String | |
String |
|
String |
|
String | |
String | |
String | |
String | |
String | |
String | |
String |
|
String |
|
String | |
String | |
String | |
String |
|
boolean |
|
boolean | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
protected String |
|
private boolean |
|
private void |
|
protected String |
|
protected String action
The module-relative action (beginning with a slash) which will be used as the source for this image.
protected String align
The property to specify where to align the image.
protected String border
The border size around the image.
protected String contextRelative
Deprecated. Use module property instead; will be removed in a release after 1.2.0.
The property to specify how to root the image. If 'true' or if there is no current module the image is rooted to the application context path If 'false' or absent the image is rooted to the current module's context path.
protected String height
The image height.
protected String hspace
The horizontal spacing around the image.
protected String imageName
The image name for named images.
protected String ismap
Server-side image map declaration.
protected String lowsrc
Deprecated. This is not defined in the HTML 4.01 spec and will be removed in a future version of Struts.
The low resolution image source URI.
protected String module
The module prefix (beginning with a slash) which will be used to find the action for this link.
protected String name
The JSP bean name for query parameters.
protected String page
The module-relative path, starting with a slash character, of the image to be displayed by this rendered tag.
protected String pageKey
The message resources key under which we should look up thepage
attribute for this generated tag, if any.
protected String paramId
In situations where an image is dynamically generated (such as to create a chart graph), this specifies the single-parameter request parameter name to generate.
protected String paramName
The single-parameter JSP bean name.
protected String paramProperty
The single-parameter JSP bean property.
protected String paramScope
The single-parameter JSP bean scope.
protected String property
The JSP bean property name for query parameters.
protected String scope
The scope of the bean specified by the name property, if any.
protected String src
The image source URI.
protected String srcKey
The message resources key under which we should look up thesrc
attribute for this generated tag, if any.
protected boolean useLocalEncoding
protected String usemap
Client-side image map declaration.
protected String vspace
The vertical spacing around the image.
protected String width
The image width.
public int doEndTag() throws JspException
Render the end of the IMG tag.
public int doStartTag() throws JspException
Render the beginning of the IMG tag.
public String getAction()
public String getAlign()
public String getBorder()
public String getContextRelative()
Deprecated. Use module property instead; will be removed in a release after 1.2.0.
public String getHeight()
public String getHspace()
public String getImageName()
public String getIsmap()
public String getLowsrc()
Deprecated. This is not defined in the HTML 4.01 spec and will be removed in a future version of Struts.
public String getModule()
public String getName()
public String getPage()
public String getPageKey()
public String getParamId()
public String getParamName()
public String getParamProperty()
public String getParamScope()
public String getProperty()
public String getScope()
public String getSrc()
public String getSrcKey()
public String getUsemap()
public String getVspace()
public String getWidth()
public boolean isContextRelativeSet()
Deprecated. Use module property instead; will be removed in a release after 1.2.0.
Convenience method to return true if contextRelative set to "true".
- Returns:
- True if contextRelative set to "true"
public boolean isUseLocalEncoding()
public void release()
Release any acquired resources.
- Overrides:
- release in interface BaseHandlerTag
public void setAction(String action)
public void setAlign(String align)
public void setBorder(String border)
public void setContextRelative(String contextRelative)
Deprecated. Use module property instead; will be removed in a release after 1.2.0.
public void setHeight(String height)
public void setHspace(String hspace)
public void setImageName(String imageName)
public void setIsmap(String ismap)
public void setLowsrc(String lowsrc)
public void setModule(String module)
public void setName(String name)
public void setPage(String page)
public void setPageKey(String pageKey)
public void setParamId(String paramId)
public void setParamName(String paramName)
public void setParamProperty(String paramProperty)
public void setParamScope(String paramScope)
public void setProperty(String property)
public void setScope(String scope)
public void setSrc(String src)
public void setSrcKey(String srcKey)
public void setUseLocalEncoding(boolean b)
public void setUsemap(String usemap)
public void setVspace(String vspace)
public void setWidth(String width)
protected String src() throws JspException
Return the base source URL that will be rendered in thesrc
property for this generated element, ornull
if there is no such URL.
private boolean srcDefaultReference(ModuleConfig config)
Convenience method to test whether this is the default module or if contestRelative has been set.
- Parameters:
config
- Our Moduleconfig
- Returns:
- True if this is the default module or contextRelative is set
private void throwImgTagSrcException() throws JspException
Convenience method to throw a "imgTag.src" exception.
protected String url(String url) throws JspException
Return the specified src URL, modified as necessary with optional request parameters.
- Parameters:
url
- The URL to be modified (or null if this url will not be used)