org.apache.taglibs.rdc
Class GetResourceTag

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

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

This tag is used to retrieve a resource from a (property) resource bundle. Avoids LocalizationContext / JSTL dependency for RDC core.

Author:
Rahul Akolkar

Constructor Summary
GetResourceTag()
           
 
Method Summary
 void doTag()
          Get the resource and assign it to the variable in the JSP context
 void setBundle(java.util.ResourceBundle bundle)
           
 void setIsGrammarURI(java.lang.Boolean isGrammarURI)
           
 void setKey(java.lang.String key)
           
 void setVar(java.lang.String var)
           
 
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

GetResourceTag

public GetResourceTag()
Method Detail

setBundle

public void setBundle(java.util.ResourceBundle bundle)
Parameters:
bundle - The bundle to set.

setKey

public void setKey(java.lang.String key)
Parameters:
key - The key to set.

setVar

public void setVar(java.lang.String var)
Parameters:
var - The var to set.

setIsGrammarURI

public void setIsGrammarURI(java.lang.Boolean isGrammarURI)
Parameters:
isGrammarURI - The isGrammarURI to set.

doTag

public void doTag()
           throws java.io.IOException,
                  javax.servlet.jsp.JspException
Get the resource and assign it to the variable in the JSP context

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


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