org.apache.taglibs.rdc.core
Class ExpandTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by org.apache.taglibs.rdc.core.ExpandTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

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

Implements the tag <rdc:expand>Hello from #{model.name}</rdc:expand>. This tag can be used to evaluate text containing expressions that use the custom syntax "#{...}". It is useful in authoring prompt templates that refer to run-time values.

Version:
1.0
Author:
T. V. Raman, Rahul Akolkar

Constructor Summary
ExpandTag()
           
 
Method Summary
 void doTag()
          Captures the result of invoking body, Replaces occurrences of #{ with ${, and then evaluates the result using el.
 
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

ExpandTag

public ExpandTag()
Method Detail

doTag

public void doTag()
           throws java.io.IOException,
                  javax.servlet.jsp.JspException,
                  javax.servlet.jsp.JspTagException
Captures the result of invoking body, Replaces occurrences of #{ with ${, and then evaluates the result using el. The result of el evaluation is written to the JSP output stream. in case of an el evaluation error, we produce appropriate error messages into the JSP output stream.

Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
java.io.IOException
javax.servlet.jsp.JspException
javax.servlet.jsp.JspTagException


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.