com.windgazer.util.io.taglib
Class FileRelativePathTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--com.windgazer.util.io.taglib.FileAttributeTag
              |
              +--com.windgazer.util.io.taglib.FileRelativePathTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
FileUrlTag

public class FileRelativePathTag
extends FileAttributeTag

FileRelativePathTag is an implementation of FileAttributeTag.

Version:
1.1
Author:
Martin 'Kemanorel' Reurings
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
FileRelativePathTag()
           
 
Method Summary
 java.lang.String getTagPrintString(java.io.File myFile)
          Implementation of FileAttributeTag.
 
Methods inherited from class com.windgazer.util.io.taglib.FileAttributeTag
doStartTag
 
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

FileRelativePathTag

public FileRelativePathTag()
Method Detail

getTagPrintString

public java.lang.String getTagPrintString(java.io.File myFile)
Implementation of FileAttributeTag.
Constructs a relative path for this file. The path is relative to the root of the site and can as such easily be used to make a link or such.

Specified by:
getTagPrintString in class FileAttributeTag
Parameters:
myFile - The File returned by the surrounding FileProvider.
Returns:
The path of this file relative to the root of the site.
See Also:
FileAttributeTag.getTagPrintString(File)


Copyright © 2003 Windgazer Design. All Rights Reserved.