DLESE Tools
v1.6.0

org.dlese.dpc.util.tags
Class ReadFileTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.dlese.dpc.util.tags.ReadFileTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class ReadFileTag
extends TagSupport

Tag for displaying the contents of a system file

Author:
ryandear
See Also:
Serialized Form

Field Summary
 
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
ReadFileTag()
           
 
Method Summary
 int doStartTag()
          Read the file, spit it out
 void setFilename(String filename)
          Sets the filename attribute of the ReadFileTag object
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadFileTag

public ReadFileTag()
Method Detail

setFilename

public void setFilename(String filename)
Sets the filename attribute of the ReadFileTag object

Parameters:
filename - The new filename value

doStartTag

public int doStartTag()
               throws JspException
Read the file, spit it out

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class TagSupport
Returns:
Description of the Return Value
Throws:
JspException - Description of the Exception

DLESE Tools
v1.6.0