nl.gx.webmanager.taglib.edit
Class EscapeToHtmlTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by nl.gx.webmanager.taglib.edit.EscapeToHtmlTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class EscapeToHtmlTag
extends javax.servlet.jsp.tagext.SimpleTagSupport

Implements the wmedit:escapeToHtml tag. This tag umlifies the given string value. If the var attribute is set, the result is bound to the var in the pagecontext, else the result of the lookup is printed. This functionality should be used when a string is rendered within an attribute value of an html (or xml) tag.

Author:
arjans

Constructor Summary
EscapeToHtmlTag()
           
 
Method Summary
 void doTag()
           
protected  java.lang.String getValue()
          Return the escaped value.
protected  java.lang.String getVar()
          Return name of the variable to which the escaped value will be assigned or null.
 void setValue(java.lang.String value)
          Setter for the required value attribute.
 void setVar(java.lang.String var)
          Setter for the optional var attribute.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EscapeToHtmlTag

public EscapeToHtmlTag()
Method Detail

setVar

public void setVar(java.lang.String var)
Setter for the optional var attribute.

Parameters:
var - name of the variable to which the escaped value will be assigned.

getVar

protected java.lang.String getVar()
Return name of the variable to which the escaped value will be assigned or null.

Returns:
name of the variable to which the escaped value will be assigned or null if not set.

setValue

public void setValue(java.lang.String value)
Setter for the required value attribute.

Parameters:
value - value that is to be escaped.

getValue

protected java.lang.String getValue()
Return the escaped value.

Returns:
the escaped value.

doTag

public void doTag()
           throws javax.servlet.jsp.JspException
Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
javax.servlet.jsp.JspException


Copyright © 2007-2011 GX Software BV. All Rights Reserved.