Welcome!

Weblogic Authors: Yeshim Deniz, Elizabeth White, Michael Meiner, Michael Bushong, Avi Rosenthal

Related Topics: Weblogic

Weblogic: Article

Understanding the Portal Framework

Understanding the Portal Framework

This is the third and final article in a series aimed at demystifying the frameworks that compose the BEA WebLogic Portal.

Although this month I focus on the portal framework, you should realize that the value of WebLogic Portal is in the combination of frameworks, components, and wizards that enable the creation of Web-based applications that provide value to the end customer and the hosting business. The customer benefits by being presented with a solution that is easy to use, personalizes content and services, and provides a much better user experience. The business saves money by maintaining only one portal solution that provides a view into all of its back-end systems, requiring only one portal solution throughout its departments, having a decoupled solution that allows the changing of back-end systems without enforced change to the front-end enterprise portal, and reusing application components throughout the enterprise. The core business also improves by having a solution that intelligently adapts itself to the user's dynamic user profile, provides the ability to intelligently execute campaigns, and provides the means to dynamically modify the application logic after the business analysts have completed their analysis of their online business, thus providing a 360-degree feedback loop.

The portal framework is an adaptable presentation engine that aggregates visual presentation components, called portlets, into a single presentation unit and enables the interaction between these presentation units to create a dynamic and interactive Web front end to a business application. The main components in the portal framework are the Flow Controller, Portal Page Generator, Portlet Page Generator, Portlets, and custom JSP tags. This article will describe each component in detail and walk the reader through a framework execution scenario.

Portal Framework
The portal framework can be logically divided into two major functional areas. The first is the aggregation of visual components, and the second is the management of the dynamic interaction between the different visual components and the management of incoming requests from the user. In the interest of not turning this article into a voluminous white paper, I will focus only on the aggregation of visual portal components. Those of you who want a more detailed understanding of the interaction between the different portlets, the management of incoming requests, and the wizards that increase developer productivity, are encouraged to read the material located on BEA's online documentation Web site.

The main components of the portal engine responsible for aggregating the visual components in the portal framework are the PortalWebflowServlet, the portal.jsp page, the portlet.jsp page, and the custom JSP tags (see Figure 1). The PortalWebflowServlet uses the same architecture as the WebflowServlet architecture described in "Building Adaptive Applications with Reusable Components" (WLDJ, Vol. 1, issue 6), and is the cornerstone for handling the interportlet communication and the management of incoming requests (see Figure 2).

Flow Controller
The PortalWebflowServlet is the Java servlet responsible for handling flow control for the portal framework. This portal flow controller intercepts incoming requests from the client and determines whether the request is intended for a portal Web application. If the request is intended for a portal Web application, the servlet hands control to the portal Webflow executor, which would invoke the portal page generator (see Figures 1 and 3). The portal page generator then manages the creation of the portal page and all of its composite parts.

Portal Page Generator
The portal.jsp file is the portal page generator responsible for combining the disparate visual components that make up the portal page. The portal page generator would aggregate the header and footer content for the page, and incorporate the content returned by the portlet page generator (see Figure 3). The functionality contained in the portal.jsp page can be extended by the portal developer to include custom functionality. However, it is not recommended to hard-code custom functionality into the page, as there is no guarantee that the portal page generator will not change in future releases of the product.

Portlet Page Generator
The portlet.jsp file is the portlet page generator responsible for combining all the visual portlet components into a compound visual portlet unit. The portlet page generator would aggregate all the different portlets into an HTML table that conforms to the layout and visibility strategies determined by the portal administrator. The availability of portlets is governed by the business rules processed by the entitlements engine, which also makes use of the user's user and group profile information. Like the portal page generator, the functionality contained in the portlet.jsp page can also be extended by the portal developer to include custom functionality. Again, it is not recommended that you hard-code custom functionality into the page, as there is no guarantee that the portlet page generator will not change in future releases of the product.

Portlet Pages
Portlet pages are visual components that provide specific business functionality and content. Each of the portlet pages or components can be considered to be a single reusable visual unit that is shared amongst different portal deployments. A portlet can be constructed to provide services or data from one single back-end source or multiple back-end sources. Each portlet component can be composed of a combination of the following subcomponents: titlebar, banner, header, footer, and content section. Some of the out-of-the-box portlets that come with the product include functionality for collaboration, calendaring, Webmail, chat, whiteboard, and discussion groups.

Portal and Portlet Management JSP Tag Library
These custom management tags allow JSP developers to access the portal framework functionality of WebLogic Portal without having to write EJB client code. The portal framework management JSP tag libraries are divided into three main categories; portal, portlet and utility. The JSP: tags in the portal category are used to execute management functionality that is specific to the internal workings of the portal as a whole; the JSP tags in the portlet category are used to execute portlet specific functionality; and the JSP tags in the utility category are used to perform URL validation. (For more information on the parameters for each JSP tag and for the entire WebLogic Portal JSP tag library, visit the BEA online documentation Web site: http://edocs.bea.com.)

Portlet JSP Tags
Instead of having the portlet developer write custom code to call the PortalWebflowServlet, custom JSP tags are provided to increase productivity and to minimize the potential of malformed calls. Portlet JSP tags are provided to properly construct a Webflow URL, an HTML form, and an HTML form that takes advantage of the data validation component in the portal framework. Additionally, custom JSP tags are provided to display an Edit portlet, a minimized portlet, an unminimized portlet, a maximized portlet, an unmaximized portlet, a floating portlet, and the exceptions thrown by the Webflow processor. Each of the tags in the portlet JSP tag group is focused on managing each portlet component and is meant to be called in the portlet content page.

More information on the portlet JSP tags can be found at http://edocs.bea.com/wlp/docs70/jsp/mngprtal.htm#1002046.

Portal JSP Tags
Like the portlet JSP tags, the portal JSP tags are used mainly to aid the portal developer by providing helper tags that increase the developer's productivity. Portal JSP tags are provided to properly construct a Webflow URL, an HTML form, and an HTML form that takes advantage of the validation component in the portal framework. Additionally, a custom JSP tag is provided to notify the PortalWebflowServlet of the event that the user is changing a page. Each of the tags in the portal JSP tag group is focused on managing the portal solution as a whole and is meant to be called in the portal page generator file. More information on the portal JSP tags can be found at http://edocs.bea.com/wlp/docs70/jsp/mngprtal.htm#1003563.

Utility JSP Tags
The two utility JSP tags provided are used as sanity processing rules in the JSP tag. The first utility JSP tag will process the code contained with the brackets if the URL provided is valid. The second utility JSP tag will process the code contained within the brackets if the URL provided is invalid. Since these tags can be used in either the portal page or any of the portlet pages, they are part of the utility category.

More information on the utility JSP tags for the portal framework can be found at http://edocs.bea.com/wlp/docs70/jsp/mngprtal.htm#1004198.

Conclusion
The portal framework enables the reuse of visual components, and manages the interaction between the visual components and any incoming requests. Coupling the portal framework with the personalization, entitlements, and campaign frameworks provides the ability to create intelligent applications that can adapt themselves to each specific user.

My goal in this series of articles was to provide a clearer understanding as to the components and functionality that the portal, event, and advisor frameworks provided. The key concepts that are embodied in each of these frameworks are that they can be used in a unified manner, they are simple to use, and they can easily be extended to suit custom business needs.

Finally, I strongly suggest that each of you visit the BEA Portal Solution Center (http://portalsolutions.bea.com/index.jsp). This Web site contains white papers; development documents; sample code; and a catalog of partner portlets, integrated offerings, and total portal solutions.

More Stories By Dwight Mamanteo

Dwight Mamanteo is a technical manager with the Global Alliances Technical Services
organization at BEA Systems. He has been with BEA since 1999 and his current
job responsibilities include providing technical enablement support to BEA's
strategic SI and ISV partners. He has
been involved with object-oriented programming, design and architecture since 1993.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@ThingsExpo Stories
Organizations planning enterprise data center consolidation and modernization projects are faced with a challenging, costly reality. Requirements to deploy modern, cloud-native applications simultaneously with traditional client/server applications are almost impossible to achieve with hardware-centric enterprise infrastructure. Compute and network infrastructure are fast moving down a software-defined path, but storage has been a laggard. Until now.
Dion Hinchcliffe is an internationally recognized digital expert, bestselling book author, frequent keynote speaker, analyst, futurist, and transformation expert based in Washington, DC. He is currently Chief Strategy Officer at the industry-leading digital strategy and online community solutions firm, 7Summits.
Digital Transformation is much more than a buzzword. The radical shift to digital mechanisms for almost every process is evident across all industries and verticals. This is often especially true in financial services, where the legacy environment is many times unable to keep up with the rapidly shifting demands of the consumer. The constant pressure to provide complete, omnichannel delivery of customer-facing solutions to meet both regulatory and customer demands is putting enormous pressure on...
IoT is at the core or many Digital Transformation initiatives with the goal of re-inventing a company's business model. We all agree that collecting relevant IoT data will result in massive amounts of data needing to be stored. However, with the rapid development of IoT devices and ongoing business model transformation, we are not able to predict the volume and growth of IoT data. And with the lack of IoT history, traditional methods of IT and infrastructure planning based on the past do not app...
"Akvelon is a software development company and we also provide consultancy services to folks who are looking to scale or accelerate their engineering roadmaps," explained Jeremiah Mothersell, Marketing Manager at Akvelon, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
DXWorldEXPO LLC, the producer of the world's most influential technology conferences and trade shows has announced the 22nd International CloudEXPO | DXWorldEXPO "Early Bird Registration" is now open. Register for Full Conference "Gold Pass" ▸ Here (Expo Hall ▸ Here)
More and more brands have jumped on the IoT bandwagon. We have an excess of wearables – activity trackers, smartwatches, smart glasses and sneakers, and more that track seemingly endless datapoints. However, most consumers have no idea what “IoT” means. Creating more wearables that track data shouldn't be the aim of brands; delivering meaningful, tangible relevance to their users should be. We're in a period in which the IoT pendulum is still swinging. Initially, it swung toward "smart for smart...
IoT is rapidly becoming mainstream as more and more investments are made into the platforms and technology. As this movement continues to expand and gain momentum it creates a massive wall of noise that can be difficult to sift through. Unfortunately, this inevitably makes IoT less approachable for people to get started with and can hamper efforts to integrate this key technology into your own portfolio. There are so many connected products already in place today with many hundreds more on the h...
Here are the Top 20 Twitter Influencers of the month as determined by the Kcore algorithm, in a range of current topics of interest from #IoT to #DeepLearning. To run a real-time search of a given term in our website and see the current top influencers, click on the topic name. Among the top 20 IoT influencers, ThingsEXPO ranked #14 and CloudEXPO ranked #17.
Join IBM November 1 at 21st Cloud Expo at the Santa Clara Convention Center in Santa Clara, CA, and learn how IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Cognitive analysis impacts today’s systems with unparalleled ability that were previously available only to manned, back-end operations. Thanks to cloud processing, IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Imagine a robot vacuum that becomes your personal assistant tha...
As data explodes in quantity, importance and from new sources, the need for managing and protecting data residing across physical, virtual, and cloud environments grow with it. Managing data includes protecting it, indexing and classifying it for true, long-term management, compliance and E-Discovery. Commvault can ensure this with a single pane of glass solution – whether in a private cloud, a Service Provider delivered public cloud or a hybrid cloud environment – across the heterogeneous enter...
The Jevons Paradox suggests that when technological advances increase efficiency of a resource, it results in an overall increase in consumption. Writing on the increased use of coal as a result of technological improvements, 19th-century economist William Stanley Jevons found that these improvements led to the development of new ways to utilize coal. In his session at 19th Cloud Expo, Mark Thiele, Chief Strategy Officer for Apcera, compared the Jevons Paradox to modern-day enterprise IT, examin...
DXWorldEXPO LLC announced today that ICC-USA, a computer systems integrator and server manufacturing company focused on developing products and product appliances, will exhibit at the 22nd International CloudEXPO | DXWorldEXPO. DXWordEXPO New York 2018, colocated with CloudEXPO New York 2018 will be held November 11-13, 2018, in New York City. ICC is a computer systems integrator and server manufacturing company focused on developing products and product appliances to meet a wide range of ...
Major trends and emerging technologies – from virtual reality and IoT, to Big Data and algorithms – are helping organizations innovate in the digital era. However, to create real business value, IT must think beyond the ‘what’ of digital transformation to the ‘how’ to harness emerging trends, innovation and disruption. Architecture is the key that underpins and ties all these efforts together. In the digital age, it’s important to invest in architecture, extend the enterprise footprint to the cl...
DXWorldEXPO LLC announced today that All in Mobile, a mobile app development company from Poland, will exhibit at the 22nd International CloudEXPO | DXWorldEXPO. All In Mobile is a mobile app development company from Poland. Since 2014, they maintain passion for developing mobile applications for enterprises and startups worldwide.
In an era of historic innovation fueled by unprecedented access to data and technology, the low cost and risk of entering new markets has leveled the playing field for business. Today, any ambitious innovator can easily introduce a new application or product that can reinvent business models and transform the client experience. In their Day 2 Keynote at 19th Cloud Expo, Mercer Rowe, IBM Vice President of Strategic Alliances, and Raejeanne Skillern, Intel Vice President of Data Center Group and ...
"We are a well-established player in the application life cycle management market and we also have a very strong version control product," stated Flint Brenton, CEO of CollabNet,, in this SYS-CON.tv interview at 18th Cloud Expo at the Javits Center in New York City, NY.
In his session at @ThingsExpo, Arvind Radhakrishnen discussed how IoT offers new business models in banking and financial services organizations with the capability to revolutionize products, payments, channels, business processes and asset management built on strong architectural foundation. The following topics were covered: How IoT stands to impact various business parameters including customer experience, cost and risk management within BFS organizations.
While the focus and objectives of IoT initiatives are many and diverse, they all share a few common attributes, and one of those is the network. Commonly, that network includes the Internet, over which there isn't any real control for performance and availability. Or is there? The current state of the art for Big Data analytics, as applied to network telemetry, offers new opportunities for improving and assuring operational integrity. In his session at @ThingsExpo, Jim Frey, Vice President of S...
With the introduction of IoT and Smart Living in every aspect of our lives, one question has become relevant: What are the security implications? To answer this, first we have to look and explore the security models of the technologies that IoT is founded upon. In his session at @ThingsExpo, Nevi Kaja, a Research Engineer at Ford Motor Company, discussed some of the security challenges of the IoT infrastructure and related how these aspects impact Smart Living. The material was delivered interac...