Use Portal to integrate external applications

Source: Internet
Author: User
Tags php introduction
Using Portal to integrate external applications <P> as the Portal matures step by step, its structure and functions have also undergone great changes, from hybrid services to system frameworks as the core, applications are completely separated from deployment and development

As the Portal matures step by step, its structure and functions have also undergone major changes. from a hybrid service to a stage where the system framework is the core, applications are completely separated from deployment and development, the Portal is equivalent to a skeleton that can accommodate external applications developed using such technical architecture. it uses the Portals Bridges mode to connect different applications. it may include:

Applications developed in Struts MVC mode:
Struts has become the most popular framework tool for creating Web applications using Java. the MVC mode implemented by Struts brings a good hierarchy to Web applications, it also provides a series of tools to simplify Web application development.

Application developers do not need to care about Portal specifications. as long as they care about Struts development, this greatly reduces development costs and retrains developers.

: Integrate the Struts application in the Portal


Main implementation classes:

Public class StrutsPortlet extends GenericPortlet

The following is a piece of the Portlet:

ServletContextProvider

Org. apache. jetspeed. portlet.

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

 

Applications Integrated with WebWork
WebWork is an open-source Web application framework used to simplify Web-based application development. This topic introduces WebWork and describes how to use WebWork, assumerverpages (JSP), and Velocity to create a registration interface.

Use the Portals Bridges framework of Jetspeed2 to integrate with webwork.

Public class Webwork2Portlet extends GenericPortlet

JSF application integration
What is JSF?

JSF provides JAVA-based Web application user interfaces with standard programming interfaces and a wide range of scalable UI component libraries (a core JSP tag library is used to process events and perform verification ). and other non-UI-related operations and a standard HTML tag library to represent the UI component) A complete set of Web application frameworks, such as the event-driven model, you can easily use WEB components, capture events generated by user behavior, perform verification, and create page navigation ..., At the same time, you will find that when developing a JSF application using a development tool that supports JSF, everything will become very simple, just as we are now developing a VB or PowerBuilder program, in GUI mode, drag and drop components, modify component attributes, establish association between components, and write event listeners, A Web application developer who is not particularly familiar with Java can easily complete their tasks. This ease of development is undoubtedly too important for J2EE.

Integrate PERL applications
PERL introduction:

Perl is short for Practical Extraction and Reporting Language. it is a programming Language most widely used in syntax analysis and World Wide Web. It originated from the awk, C, sh, and sed languages. However, its application development is much easier than any other object-oriented programming language.

Implementation method:

N-US> Public class PerlPortlet extends GenericPortlet

Use HttpServletResponseWrapper to encapsulate the byte stream for Response.

The configuration snippet of the Portlet.

Perl-demo

Perl demo Portlet

Org. apache. portals. bridges. perl. PerlPortlet

-1

Text/html

VIEW

Integrate PHP applications
PHP introduction:

PHP is a script language for creating dynamic websites based on the server. you can use PHP and HTML to generate the website homepage. When a visitor opens the home page, the server executes the PHP command and sends the execution result to the visitor's browser, which is similar to ASP and CoildFusion, however, PHP differs from them in that PHP is open source code and a cross-platform. PHP can run on windows nt and multiple versions of UNIX. It does not require any pre-processing to quickly feedback results, nor does it require mod_perl adjustments to reduce the memory image of your server. PHP consumes less resources. When PHP is used as a part of the Apache Web server, it does not need to call external binary programs to run the code, and the server does not have to bear any extra burden.

Public class PHPApplicationPortlet extends GenericPortlet
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.