|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--com.windgazer.util.io.taglib.FileAttributeTag
FileAttributeTag is the base for creating short-coded attibute-tags.
Attribute tags in this context are tags that print a short string
representing one of the providers attributes.
This Tag will try and find the surrounding FileProvider and pass it on to
the getTagPrintString(File) method so that the short-coded implementation of
this tag needs only to read and return the desired attribute.
| 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 | |
FileAttributeTag()
|
|
| Method Summary | |
int |
doStartTag()
Gets the File from the surrounding FileProvider
and prints the result of getTagPrintString(File) to the pageContext. |
abstract java.lang.String |
getTagPrintString(java.io.File myFile)
Return the value of an attribute. |
| 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 |
public FileAttributeTag()
| Method Detail |
public int doStartTag()
throws javax.servlet.jsp.JspTagException
File from the surrounding FileProvider
and prints the result of getTagPrintString(File) to the pageContext.
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspTagExceptiongetTagPrintString(File)
public abstract java.lang.String getTagPrintString(java.io.File myFile)
throws java.io.IOException
File.
myFile - The File returned by the surrounding
FileProvider.
java.io.IOExceptiondoStartTag()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||