12.1 Enabling JSP Files to Be Used on Your Vibe Site

After a JSP file has been created, you need to make it available to users in your Vibe site.

  1. On the Vibe server, locate the JSP file that you want to make available to users.

  2. Place the JSP file in the /WEB-INF/jsp/custom_jsps directory.

    Users need to reference this file by name in order to use it, so make sure that the name of the file is intuitive and easy to remember.

    HINT:You might want to create separate folders for each custom JSP file inside the custom_jsps directory. This can make managing your custom JSP files more simple. However, users who leverage these sample JSP files from the Vibe site will need to enter the relative path to the file. For example: new_folder/custom_jsp_landing_page_entry.jsp.

  3. Stop and Restart the Vibe server.

    or

    If you are running Vibe in a non-production environment, you can configure Vibe to automatically update a all JSP changes that you make on the Vibe server, without stopping and restarting the Vibe server. For more information, see Section 12.1.1, Dynamically Updating JSP Files by Running Vibe in Development Mode.

12.1.1 Dynamically Updating JSP Files by Running Vibe in Development Mode

If you are testing JSP files on a non-production system and you want all JSP changes that you make on the Vibe server to be automatically available on the Vibe server without stopping and restarting the Vibe server, you can run Vibe in development mode.

IMPORTANT:Running Vibe in development mode significantly decreases the performance of your Vibe server and should not be used on a production system.

To run Vibe in development mode:

  1. Open the web.xml file in a text editor.

    The web.xml file is located in the following directory:

    Platform

    Default Location

    Linux:

    /opt/novell/teaming/apache-tomcat/conf

    Windows:

    c:\Program Files\Novell\Teaming\apache-tomcat\conf

  2. Search for the development parameter, then change the value of this parameter from false to true.

  3. Save and close the web.xml file.