Adding an existing Faces JSP page to a Web site
You can add a Faces JSP page that already exists to a Web site by adding it to the navigation of the site in Web Site Navigation.
To add a Faces JSP page to a Web site:
- In the Enterprise Explorer view of the Web perspective, expand your Web site and double-click
Web Site Navigation.
- In the Navigation page, decide where the Faces JSP page you are adding fits in the Web site's organization.
- Right-click where you want to attach the new page, either on a page icon or anywhere in the Navigation pane and select
Add Existing Pages. The Add Existing Pages wizard opens.
- If you did not select a page icon before invoking the pop-up menu, select a top page before you can add pages.
- In the
Top page field of the Select a Top Page page of the wizard, select the top page for the page that you are adding.
- If the selected page contains links to other Faces JSP pages, select the
Add linked pages check box to add those pages as well. Web Site Navigation will follow the links that already exist to add pages up to the link depth specified. For example, if you set a depth limit of 1 to 3, all pages within 3 links of the top page will be included. Setting the link depth at
No limit ensures that all of the linked pages are added.
A thumbnail of the current selection is displayed, as well as the page's title and location.
- Click Next. The Add Existing pages to Web Site page of the wizard displays.
- If you selected a page icon before invoking the pop-up menu, the Add Existing Pages wizard opens and the Add Existing Pages to Web Site page displays.
- Select as many other existing Faces JSP pages as you want to add by using the
Add Other Pages button to select files. If the selected Faces JSP page contains links to other Faces JSP pages, use the
Add Linked Pages option to add those pages as well.
- Click Finish to add the existing page to the Web site.
Web Site Navigation automatically adds the page icons to the site structure in the Navigation view according to the hierarchy defined by the existing pages' links. You can now manipulate the structure and relationships of the pages.
Setting the Servlet URL
After you have added the Faces JSP page to your Web site, set the Servlet URL to your page so that any navigation objects that you add to your Web pages can automatically generate the correct URLs. To set the Servlet URL to a Faces JSP page, do the following:
- In the Navigation view of Web Site Navigation, right-click the Faces JSP and select
Set Navigation | Set Servlet URL . The Set Servlet URL window opens.
- In the Servlet list select the name of your Faces JSP page servlet. Ensure that the URL is correct and click OK. The Servlet URLs that are used to invoke the servlet are set.
Related concepts
Related tasks
Adding a new page to a Web site
Adding an external page to a Web site
Adding an existing page to a Web site
Associating a Web page with a page icon
Adding frame pages to a Web site