com.cc.framework.taglib.util
Class BrowserInfoTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.cc.framework.taglib.util.BrowserInfoTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class BrowserInfoTag
extends javax.servlet.jsp.tagext.TagSupport

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.

Version:
$Revision$
Author:
Harald Schulz
See Also:
Serialized Form

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

FILED_ID

private static final java.lang.String FILED_ID
See Also:
Constant Field Values

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

log

private transient org.apache.commons.logging.Log log
Commons Logging instance.


name

private java.lang.String name
The name of the hidden input field

Constructor Detail

BrowserInfoTag

public BrowserInfoTag()
Method Detail

doCreateScript

protected org.apache.ecs.html.Script doCreateScript()
Creates the sniffer script that will fill the hidden input field with information about the users browser

Returns:
Script

doCreateElement

protected org.apache.ecs.ConcreteElement doCreateElement()
Creates the browser info html elements

Returns:
element collection

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException
See Also:
TagSupport.doEndTag()

release

public void release()
See Also:
TagSupport.release()

setName

public void setName(java.lang.String name)
Sets the name of the hidden input field. When no name is specified the default name Globals.BROWSER_INFO_KEY will be used.

Parameters:
name - The name to set.


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.