- java.lang.Object
-
- javax.servlet.jsp.tagext.SimpleTagSupport
-
- com.semanticcms.openfile.taglib.OpenFileTag
-
public class OpenFileTag extends SimpleTagSupport
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 thecom.semanticcms.openfile.servlet.OpenFile.enabled
context parameter totrue
.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 Constructor Description OpenFileTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doTag()
void
setBook(String book)
void
setPath(String path)
-
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
-
-
-
Method Detail
-
setBook
public void setBook(String book)
-
setPath
public void setPath(String path)
-
doTag
public void doTag() throws JspException, IOException
- Specified by:
doTag
in interfaceSimpleTag
- Overrides:
doTag
in classSimpleTagSupport
- Throws:
JspException
IOException
-
-