Displaying Linked Pages with Creator2 Using Page Fragments (Page 1 of 4 )
Sun Microsystems's Studio Creator2 is a development tool for creating multi-tiered web applications in pure Java that has similarities to some of Microsoft products, the latest of which is Visual Studio 2005 based on .NET framework. One of the desired usability features that the users ask for is to have a frame (or area) where they have a table of contents (ToC), and items listed in the ToC are opened in another area on the same page to which they are linked. This feature is common in many e-books.
In an earlier version of Creator2 this feature was handled with custom links between pages or between components and pages defined by an XML file, rightly called the Navigation.xml. These links (navigation handlers) were only defined for JSP pages and JSF components and linking to HTML pages were not supported. This has changed and they can be linked to HTML pages as well.
This tutorial shows you how you may set up the application to have a functionality described above, a table of contents area, the links in which when clicked would display in the main area. In order to achieve this, Page Fragment components are used.
Layout of the JSP Page
The layout of the JSP page that will be implemented in this tutorial is as shown in the next picture. In this picture the list with links in the ToC area open up and display in the MAIN area. The dimensions are those that are used in the tutorial and may be modified for your requirement.