org.apache.struts.taglib.html
public class ImgTag extends BaseHandlerTag
TODO:
Version: $Rev: 164927 $
Field Summary | |
---|---|
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
The property to specify how to root the image.
|
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
The low resolution image source URI. |
protected static MessageResources | messages
The message resources for this package. |
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 the
page 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 the
src 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. |
Constructor Summary | |
---|---|
ImgTag() |
Method Summary | |
---|---|
int | doEndTag()
Render the end of the IMG tag.
|
int | doStartTag()
Render the beginning of the IMG tag.
|
String | getAction() |
String | getAlign() |
String | getBorder() |
String | getContextRelative() |
String | getHeight() |
String | getHspace() |
String | getImageName() |
String | getIsmap() |
String | getLowsrc() |
String | getModule() |
String | getName() |
String | getPage() |
String | getPageKey() |
String | getParamId() |
String | getParamName() |
String | getParamProperty() |
String | getParamScope() |
String | getProperty() |
String | getScope() |
String | getSrc() |
String | getSrcKey() |
String | getUsemap() |
String | getVspace() |
String | getWidth() |
boolean | isContextRelativeSet()
Convenience method to return true if contextRelative set to "true". |
boolean | isUseLocalEncoding() |
void | release()
Release any acquired resources. |
void | setAction(String action) |
void | setAlign(String align) |
void | setBorder(String border) |
void | setContextRelative(String contextRelative) |
void | setHeight(String height) |
void | setHspace(String hspace) |
void | setImageName(String imageName) |
void | setIsmap(String ismap) |
void | setLowsrc(String lowsrc) |
void | setModule(String module) |
void | setName(String name) |
void | setPage(String page) |
void | setPageKey(String pageKey) |
void | setParamId(String paramId) |
void | setParamName(String paramName) |
void | setParamProperty(String paramProperty) |
void | setParamScope(String paramScope) |
void | setProperty(String property) |
void | setScope(String scope) |
void | setSrc(String src) |
void | setSrcKey(String srcKey) |
void | setUseLocalEncoding(boolean b) |
void | setUsemap(String usemap) |
void | setVspace(String vspace) |
void | setWidth(String width) |
protected String | src()
Return the base source URL that will be rendered in the src
property for this generated element, or null if there is
no such URL.
|
boolean | srcDefaultReference(ModuleConfig config)
Convenience method to test whether this is the default module
or if contestRelative has been set. |
void | throwImgTagSrcException()
Convenience method to throw a "imgTag.src" exception. |
protected String | url(String url)
Return the specified src URL, modified as necessary with optional
request parameters.
|
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.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.page
attribute for this generated tag, if any.src
attribute for this generated tag, if any.Throws: JspException if a JSP exception has occurred
Throws: JspException if a JSP exception has occurred
Deprecated: Use module property instead; will be removed in a release after 1.2.0.
Deprecated: This is not defined in the HTML 4.01 spec and will be removed in a future version of Struts.
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"
Deprecated: Use module property instead; will be removed in a release after 1.2.0.
src
property for this generated element, or null
if there is
no such URL.
Throws: JspException if an error occurs
Parameters: config Our Moduleconfig
Returns: True if this is the default module or contextRelative is set
Throws: JspException
Parameters: url The URL to be modified (or null if this url will not be used)
Throws: JspException if an error occurs preparing the URL