public abstract class PrintTag
extends javax.servlet.jsp.tagext.BodyTagSupport
| Modifier and Type | Field and Description |
|---|---|
protected Action |
action |
protected javax.servlet.ServletContext |
application |
protected Locale |
loc |
protected int |
maxToPrint |
protected boolean |
noHTML |
protected javax.servlet.http.HttpServletRequest |
req |
protected javax.servlet.http.HttpServletResponse |
res |
protected javax.servlet.http.HttpSession |
session |
| Constructor and Description |
|---|
PrintTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag() |
int |
doStartTag() |
protected String |
getBody() |
static Boolean |
getBooleanValue(Object bean,
String value) |
Object |
getSessionObj() |
abstract String |
getStringToPrint()
Override this method to return what you want to print in the screen.
|
static Object |
getValue(Object bean,
String name,
boolean tryBoolean)
Finds a value through reflection.
|
Object |
getValue(String value) |
Object |
getValue(String value,
boolean tryBoolean) |
static Object |
getValue(String expression,
Object bean,
boolean tryBoolean)
Finds a value for the corresponding expression.
|
static Object |
getValue(String expression,
javax.servlet.jsp.PageContext pageContext,
boolean tryBoolean)
Finds a value for the corresponding expression.
|
void |
setMax(int maxToPrint) |
void |
setNoHTML(boolean flag) |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContentfindAncestorWithClass, getId, getParent, getValues, removeValue, setId, setPageContext, setParent, setValueprotected javax.servlet.ServletContext application
protected javax.servlet.http.HttpSession session
protected javax.servlet.http.HttpServletRequest req
protected javax.servlet.http.HttpServletResponse res
protected Action action
protected Locale loc
protected int maxToPrint
protected boolean noHTML
public void setMax(int maxToPrint)
public void setNoHTML(boolean flag)
public Object getValue(String value)
getValue in class javax.servlet.jsp.tagext.TagSupportpublic Object getSessionObj()
public abstract String getStringToPrint() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionprotected String getBody()
public static Object getValue(Object bean, String name, boolean tryBoolean)
bean - The object in where to look for the value.name - The name of the attribute.tryBoolean - Should I try isXXX and hasXXX ?public static Object getValue(String expression, javax.servlet.jsp.PageContext pageContext, boolean tryBoolean)
expression - The expression to look for.pageContext - The pageContext of the tag.tryBoolean - Should I try isXXX and has XXX ?public static Object getValue(String expression, Object bean, boolean tryBoolean)
expression - The expression to look for.bean - The bean where to search.tryBoolean - Should I try isXXX and has XXX ?public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionCopyright © 2015. All Rights Reserved.