Home arrow Java arrow Displaying Linked Pages with Creator2 Using Page Fragments

Displaying Linked Pages with Creator2 Using Page Fragments

Have you ever wanted to set up a linked table of contents in which the links go to specific parts of a web page? This article describes how to set up this functionality in Creator2 with HTML pages.

Author Info:
By: Jayaram Krishnaswamy
Rating: 4 stars4 stars4 stars4 stars4 stars / 3
December 13, 2006
  1. · Displaying Linked Pages with Creator2 Using Page Fragments
  2. · Create a JSP and add page fragments
  3. · Adding Page Fragments to the Project
  4. · Contents of Main section

print this article

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.

blog comments powered by Disqus

- Java Too Insecure, Says Microsoft Researcher
- Google Beats Oracle in Java Ruling
- Deploying Multiple Java Applets as One
- Deploying Java Applets
- Understanding Deployment Frameworks
- Database Programming in Java Using JDBC
- Extension Interfaces and SAX
- Entities, Handlers and SAX
- Advanced SAX
- Conversions and Java Print Streams
- Formatters and Java Print Streams
- Java Print Streams
- Wildcards, Arrays, and Generics in Java
- Wildcards and Generic Methods in Java
- Finishing the Project: Java Web Development ...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials