|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.cc.framework.taglib.util.BrowserInfoTag
This Tag collects some information about the users brwoser. It uses Javascript to collect the information in a hidden input field. The name of the hidden input field can be specified with the name attribute.
Field Summary | |
private static java.lang.String |
FILED_ID
|
private org.apache.commons.logging.Log |
log
Commons Logging instance. |
private java.lang.String |
name
The name of the hidden input field |
private static long |
serialVersionUID
Serial Version UID |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
BrowserInfoTag()
|
Method Summary | |
protected org.apache.ecs.ConcreteElement |
doCreateElement()
Creates the browser info html elements |
protected org.apache.ecs.html.Script |
doCreateScript()
Creates the sniffer script that will fill the hidden input field with information about the users browser |
int |
doEndTag()
|
void |
release()
|
void |
setName(java.lang.String name)
Sets the name of the hidden input field. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String FILED_ID
private static final long serialVersionUID
private transient org.apache.commons.logging.Log log
private java.lang.String name
Constructor Detail |
public BrowserInfoTag()
Method Detail |
protected org.apache.ecs.html.Script doCreateScript()
protected org.apache.ecs.ConcreteElement doCreateElement()
public int doEndTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
TagSupport.doEndTag()
public void release()
TagSupport.release()
public void setName(java.lang.String name)
Globals.BROWSER_INFO_KEY
will be
used.
name
- The name to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |