Class OpenFileTag

  • All Implemented Interfaces:
    JspTag, SimpleTag

    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 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.