public class LabelTag
extends javax.servlet.jsp.tagext.TagSupport
This class is designed to render a
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
colon |
protected String |
errorClass |
protected String |
key |
protected org.apache.commons.logging.Log |
log |
protected org.springframework.web.servlet.support.RequestContext |
requestContext |
protected String |
styleClass |
| Constructor and Description |
|---|
LabelTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doStartTag() |
void |
release()
Release all allocated resources.
|
void |
setColon(boolean colon)
Setter for specifying whether to include colon
|
void |
setErrorClass(String errorClass)
Setter for assigning a CSS class when errors occur,
defaults to labelError.
|
void |
setKey(String key) |
void |
setStyleClass(String styleClass)
Setter for assigning a CSS class, default is label.
|
protected void |
writeMessage(String msg)
Write the message to the page.
|
protected org.springframework.web.servlet.support.RequestContext requestContext
protected final transient org.apache.commons.logging.Log log
protected String key
protected String styleClass
protected String errorClass
protected boolean colon
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionprotected void writeMessage(String msg) throws IOException
msg - the message to writeIOException - if writing failedpublic void setKey(String key)
public void setColon(boolean colon)
public void setStyleClass(String styleClass)
public void setErrorClass(String errorClass)
public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupportCopyright © 2003–2013. All rights reserved.