Using a Custom Directory for Custom JSP Pages

If you will be creating your own custom JSP pages, it is recommended that you use the custom prefix approach. However, if you need to use a custom directory for backward compatibility, this topic recommends which changes you can make to the custom filter section of the relevant web.xml.part fragment.

Related Topics
Directory Structure
Enabling the Custom JSP Filter
Avoid Overwriting Custom Pages during Upgrades
  1. Open the relevant web.xml.part fragment file in a text editor.

  2. Add the lines shown in bold to the custom filter section.

    <filter>
        <filter-name>CustomFilter</filter-name>
        <filter-class>com.matrixone.servlet.CustomFilter</filter-class>
        <init-param> 
                 <param-name>ematrix.customDirName</param-name>
                 <param-value>/custom</param-value>
           </init-param>
    </filter>

    Note: You can implement a custom directory to store custom files. However, when using custom directories, there are certain JSP directives that will result in run-time (vs. compile-time) errors if the relative pathing is not correct. Therefore, it is recommended to use custom prefixes instead of a custom directory. In version 10.7 and later, use of a custom directory is not supported by default—configuration in the relevant web.xml.part fragment is required.