Presentation is loading. Please wait.

Presentation is loading. Please wait.

Java Portals and Portlets Submitted By: Rashi Chopra CIS 764 Fall 2007 Rashi Chopra.

Similar presentations


Presentation on theme: "Java Portals and Portlets Submitted By: Rashi Chopra CIS 764 Fall 2007 Rashi Chopra."— Presentation transcript:

1 Java Portals and Portlets Submitted By: Rashi Chopra CIS 764 Fall 2007 Rashi Chopra

2 Java Portal Need for Portlets Java Portlets Overview of Portlet Specification Portal View Portlet Communicating with databases QueryPortlet example Contents Rashi Chopra

3 Java Portal Java Portal is: A tool for aggregating and managing web content. A user customizable view of these Web content pieces. Implemented on top of standard services. A way to accomplish tasks through browsers: Launch, monitor jobs Move files Run science applications based on these services. Compatible with emerging standards and best practices (such as portlets, JSR 168 and WSRP). Rashi Chopra

4 Why Java Portlets? Problems with Portal development: There is no good way to share interface components. We need to constantly reinvent things like login services, customization services, page organization, access controls. Solution: We need portlets to enable distributed portal development. Rashi Chopra

5 Java Portlet It is a piece of Java code that runs in a Web server inside a container servlet. Portlets can do two things: ◦ Perform non-visual operations such as make connections to remote hosts, perform operations. ◦ Create their display. The portlet passes its display to its parent, which is responsible for constructing the entire display. ◦ Typically this is HTML, with tables uses to organize component displays. ◦ Other displays are possible (VoiceXML, WML). Rashi Chopra

6 Understanding Portlet Specification Logical Components of Java Portlet Specification: Portal Portlet Portlet Container Constructing a Portal View Portlet Lifecycle Packaging a Portlet Rashi Chopra

7 Portal View Rashi Chopra

8 Portlet communicating with databases Creating a QueryPortlet: QueryPortlet is a simple portlet that displays the contents of a database query. Each user can modify the default query, saving their new query so it executes each time they begin a portal session. Rashi Chopra

9 Viewing QueryPortlet Each portlet application has two types of state managed by the portlet container: Portlet mode: View, Edit and help Window state: Minimized, normal and maximized. Portlet mode determines which content a portlet will generate and window state determines just how much screen real estate the portlet is allowed. Rashi Chopra

10 Portlet querying the database Rashi Chopra

11 Main Portal Window Rashi Chopra

12 QueryPortlet in Edit Mode Rashi Chopra

13 QueryPortlet displaying output Rashi Chopra

14 References http://www.developer.com/java/web/article.php/10935_3372881_1 http://www.javapassion.com/j2eeadvanced/Portlet4.pdf http://java.sys-con.com/read/46966.htm Rashi Chopra

15 Thank You..!! Questions? Rashi Chopra


Download ppt "Java Portals and Portlets Submitted By: Rashi Chopra CIS 764 Fall 2007 Rashi Chopra."

Similar presentations


Ads by Google