java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
com.semanticcms.openfile.taglib.OpenFileTag
Opens a file from the servlet container.
This opens the file from the server-side so that the proper application
may be launched with the local file, allowing direct editing and saving.
OpenFile
must be explicitly enabled by setting the com.semanticcms.openfile.servlet.OpenFile.enabled
context parameter to true
.
For security, OpenFile
may only be called from localhost. However, be careful when behind a proxy,
as external proxied requests can appear to come from localhost.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
Constructor Details
-
OpenFileTag
public OpenFileTag()
-
-
Method Details
-
setBook
Sets the book of the file to open. -
setPath
Sets the path of the file to open. -
doTag
- Specified by:
doTag
in interfaceSimpleTag
- Overrides:
doTag
in classSimpleTagSupport
- Throws:
JspException
IOException
-