org.dlese.dpc.util.tags
Class ReadFileTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
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
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 |
ReadFileTag
public ReadFileTag()
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