Java
  Home arrow Java arrow Displaying Linked Pages with Creator2 Usin...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVA

Displaying Linked Pages with Creator2 Using Page Fragments
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 2
    2006-12-13

    Table of Contents:
  • Displaying Linked Pages with Creator2 Using Page Fragments
  • Create a JSP and add page fragments
  • Adding Page Fragments to the Project
  • Contents of Main section

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Displaying Linked Pages with Creator2 Using Page Fragments


    (Page 1 of 4 )

    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.

    Introduction

    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.

    More Java Articles
    More By Jayaram Krishnaswamy


       · Going from a content list to displaying details is a task that is performed...
     

    JAVA ARTICLES

    - 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 ...
    - Generics and Limitations in Java
    - Getting Started with Java Web Development in...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek