Integrate external applications with portal

xiaoxiao2021-03-06  46

Integrate external applications with portal

As Portal stepped to mature their structures and functions have also changed, from the mixed service to the core, the application and deployment, the application, the development of the fully separated phase, Portal is quite related to a skeleton can be accepted. This technology architecture developed, using portals Bridges mode to connect to different applications, can include several types:

Integrated Struts MVC mode development applications:

Struts has become a most popular framework tool for creating web applications with Java. The MVC mode implemented by Struts has brought good hierarchical divisions to web applications, as well as a series of tools to simplify Web applications.

Application developers do not need to care about Portal specification, as long as the Struts itself is developed, this greatly reduces the development cost and development personnel.

Figure 7: Integrated Struts Application in Portal

Main implementation class:

Public Class Strutsportlet Extends GenericPortlet

Below is a piece of portlet:

servletContextProvider

org.apache.jetspeed.port.ServletContextProviderImpl

viewpage

/welcome.do

helppage

/tour.do

strutsportletdemo

Struts Portlet Demo

this is the struts mailreader portlet demo

org.apache.portals.bridges.struts.strutsportlet

-1

text / html

View

help

Integrated WebWork development application

WebWork is an open web application framework for simplifying web-based applications. This column describes the process of how to create a registration interface using WebWork and JavaServerPages (JSP), Velocity.

Implement and WebWork's integration through JetSpeed2 portals Bridges frameworks

Public Class WebWork2portlet Extends GenericPortletJSF Application Integration

What is JSF?

JSF provides standard programming interfaces for developers based on Java-based web application user interface, rich and scalable UI component libraries (a core JSP tag library for handling events, executing verification, and other non-UI-related operations and one Standard HTML tag library to represent a complete web application framework such as the UI component), the event drive model, through JSF, you can easily use the web components in the page, capture the events generated by the user behavior, execute verification, establish Page navigation ..., you will find that when using development tools that support JSF to develop JSF applications, everything will become unusually simple, similar to what we have the same simple, GUI way to drag and drop components as we now develop VB or PowerBuilder programs. , Modify component properties, establish inter-component associations, and write event listeners, etc., one is not particularly familiar with Java's web application developers can easily complete their own tasks, this easy development is for J2EE Undoubtedly it is too important.

Integrated Perl application

Perl introduction:

Perl is the abbreviation of Practical Extraction and Reporting Language, is a programming language that is most widely used in grammar analysis and World Wide Web. It originated from AWK, C, SH and SED languages, however, its application development is much easier than any other object-oriented programming language.

Implementation:

Public Class Perlportlet Extends GenericPortlet

Capture the byte stream to obtain Response through httpservletresponsewrapper

Piece of the portlet

perl-demo

Perl Demo portlet

org.apache.portals.bridges.perl.perlportlet

-1

text / html

View

Integrated PHP application

PHP introduction:

PHP is a service-based scripting language that creates a dynamic website, you can generate a website home page with PHP and HTML. When an visitor opens the home page, the service executes the PHP command and sends the execution result to the visitor's browser, which is similar to the ASP and CoildFusion, but PHP and them differ from the PHP open source and cross the platform. PHP can run on a Windows NT and a variety of versions of UNIX. It does not require any pre-processed and quick feedback results, which does not require mod_perl adjustment to make your server's memory images. PHP consumes less resources. When PHP is part of the Apache Web server, the run code does not need to call external binary, and the server does not need to bear any additional burden.

Public class phpapplicationPortlet Extends GenericPortlet

转载请注明原文地址:https://www.9cbs.com/read-63036.html

New Post(0)