8.2 Using Sample Custom JSPs to Modify the Behavior of a Landing Page

Teaming 2.1 and later includes sample custom JSP files that enable you to modify the behavior of Teaming landing pages. Before you implement the sample JSP files that are described in this section, you might want to further customize them to suit your specific needs.

For information on how users can add these custom JSP files to their individual landing pages after they have been enabled for use, see Adding Content to Your Landing Page in Creating and Managing Landing Pages in the Novell Teaming 2.1 Advanced User Guide.

8.2.1 Listing Folder Entry Titles in a Bulleted List

To activate the sample JSP file that enables Teaming users to list entries in a bulleted list for any given folder:

  1. In the Teaming source files, navigate to the \WEB-INF\jsp\custom_jsp\samples directory.

  2. Select and copy the custom_jsp_landing_page_folder_list.jsp file, then paste it into the \WEB-INF\jsp\custom_jsp directory.

    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 Teaming site will need to enter the relative path to the file. For example: new_folder/custom_jsp_landing_page_entry.jsp.

8.2.2 Displaying Entry Replies on a Landing Page

You can display replies for a single entry, or for all entries that are contained in a folder.

Displaying Entry Replies for a Single Entry

To activate the sample JSP file that allows Teaming users to display entry replies on a landing page when referencing a folder entry:

  1. In the Teaming source files, navigate to the \WEB-INF\jsp\custom_jsp\samples directory.

  2. Select and copy the custom_jsp_landing_page_entry.jsp file, then paste it into the \WEB-INF\jsp\custom_jsp directory.

    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 Teaming site will need to enter the relative path to the file. For example: new_folder/custom_jsp_landing_page_entry.jsp.

Displaying Entry Replies for All Entries in a Folder

To activate the sample JSP file that allows Teaming users to display entry replies on a landing page when referencing a folder:

  1. In the Teaming source files, navigate to the \WEB-INF\jsp\custom_jsp\samples directory.

  2. Select and copy the custom_jsp_landing_page_folder.jsp file, then paste it into the \WEB-INF\jsp\custom_jsp directory.

    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 Teaming site will need to enter the relative path to the file. For example: new_folder/custom_jsp_landing_page_entry.jsp.

8.2.3 Enabling Users to Take a Survey Directly from a Landing Page

To activate the sample JSP file that enables Teaming users to participate in a survey directly from a landing page:

  1. In the Teaming source files, navigate to the \WEB-INF\jsp\custom_jsp\samples directory.

  2. Select and copy the custom_jsp_landing_page_survey_entry.jsp file, then paste it into the \WEB-INF\jsp\custom_jsp directory.