public class LinkTag
extends javax.servlet.jsp.tagext.BodyTagSupport
Modifier and Type | Field and Description |
---|---|
protected String |
action_name |
protected String |
href |
protected String |
klass |
protected String |
params |
protected String |
readonly |
protected String |
target |
protected static String |
TEMPLATE_FILE
The location where the velocity template can be retrieved from.
|
protected String |
title |
protected String |
type |
Constructor and Description |
---|
LinkTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
Generate the required input tag.
|
int |
doStartTag()
Process the start tag, do nothing.
|
void |
release()
Release any acquired resources.
|
void |
setAction(String action_name)
Sets the name of the related action (required).
|
void |
setClass(String klass)
Sets the class attribute of the tag.
|
void |
setHref(String href)
Sets the url that the link should point to.
|
void |
setId(String id)
Sets the id of the tag.
|
void |
setParams(String params)
Sets the variable name(s) of the parameter(s) transmitted to the
action separated by whitespaces (optional).
|
void |
setReadonly(String readonly)
Sets the the readonly flag of the tag.
|
void |
setTarget(String target)
Sets the target frame that the link should be opened in.
|
void |
setTitle(String href)
Sets the title to be used to display the link.
|
void |
setType(String type)
Sets the link type (submit|submitnoreload|nosubmit).
|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
protected static final String TEMPLATE_FILE
protected String readonly
protected String klass
protected String action_name
protected String params
protected String href
protected String target
protected String title
protected String type
public int doStartTag()
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
EVAL_BODY_INCLUDE
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
public void setId(String id)
setId
in class javax.servlet.jsp.tagext.TagSupport
public void setReadonly(String readonly)
public void setClass(String klass)
public void setAction(String action_name)
public void setParams(String params)
public void setHref(String href)
public void setTarget(String target)
public void setTitle(String href)
public void setType(String type)