<openfile:openFile>

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.

Tag Information

Tag Class: com.semanticcms.openfile.taglib.OpenFileTag
TagExtraInfo Class: None
Body Content: empty
Display Name: None

Attributes

Name Required Evaluation Type Description
book No Runtime String

The book containing the file. Defaults to the book of the current JSP file.

path Yes Runtime String

The context-relative path to the file.

Variables

No Variables Defined.