Program
As the portal moves towards maturity, its structure and function have changed a lot, from the blending service to the system framework, the application is completely separated from the deployment and development, the portal is quite similar to a skeleton that can accept the external application of this technology architecture, using portals Bridges mode to connect different applications, you can include several:
Applications developed with the integrated Struts MVC pattern:
Struts has become one of the most popular framework tools for creating Web Applications in Java, and the MVC model that struts implements provides a good hierarchy for Web applications, as well as a series of tools to simplify the development of Web applications.
Application developers need not care about portal specifications, as long as they care about the development of struts itself, which greatly reduces development costs and developer retraining
Figure 7: Integrating the Struts application in portal
Main implementation class:
public class Strutsportlet extends Genericportlet
The following is a fragment of the portlet:
<portlet id= "Strutsportletdemo" >
<init-param>
<name>ServletContextProvider</name>
<value>org.apache.jetspeed.portlet.
Servletcontextproviderimpl</value>
</init-param>
<init-param>
<name>ViewPage</name>
<value>/Welcome.do</value>
</init-param>
<init-param>
<name>HelpPage</name>
<value>/Tour.do</value>
</init-param>
<portlet-name>StrutsPortletDemo</portlet-name>
<display-name>struts Portlet demo</display-name>
<description>this is the struts mailreader portlet demo</description>
<portlet-class>org.apache.portals.bridges.struts.strutsportlet
</portlet-class>
<expiration-cache>-1</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-mode>HELP</portlet-mode>
</supports>
Integrated WebWork-developed applications
WebWork is a source-code-open Web application framework for simplifying web-based application development. This column describes WebWork and describes how to use WebWork and Javaserverpages (JSP), velocity two techniques to establish a registration interface
Through the Jetspeed2 portals bridges framework to achieve and webwork integration, the main implementation of the class
public class Webwork2portlet extends Genericportlet
JSF Application integration
What is JSF?
JSF provides a standard programming interface for developers of the vast majority of Java-based Web application user interfaces, rich extensible UI component libraries (a core JSP tag library to handle events, perform validation, and other non-UI-related operations and a standard HTML tag library to represent UI components), Event-driven model, and a complete WEB application framework, with JSF, you can easily use WEB components in a page, capture events generated by user behavior, perform validation, create page navigation ..., and you'll find that when you use a JSF-enabled development tool to develop JSF applications, Everything is going to be very simple, like the simple way we now develop VB or PowerBuilder programs, GUI drag-and-drop components, modify component properties, establish association between components, and write event listeners, and so on, A Web application developer who is not particularly familiar with Java can easily do its job, and this easy development is too important for EE.
Integrating Perl applications
Perl Introduction:
Perl is the abbreviation for practical extraction and Reporting Language, one of the most widely used programming languages for parsing and world Wide Web. It originated in 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
To encapsulate the response byte stream directly through Httpservletresponsewrapper
Fragment of the configuration of the Portlet
<portlet-name>perl-demo</portlet-name>
<display-name>perl Demo portlet</display-name>
<portlet-class>org.apache.portals.bridges.perl.perlportlet
</portlet-class>
<expiration-cache>-1</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
</supports>
<portlet-info>
Integrated PHP Application
PHP Introduction:
PHP is a scripting language that creates dynamic Web sites based on the server side, and you can use PHP and HTML to build your home page. When a visitor opens the home page, the server executes the PHP commands and sends the results to the visitor's browser, similar to that of ASP and coildfusion, but PHP differs from them in that PHP is open source and Cross-platform and PHP can run on Windows NT and multiple versions of UNIX. It does not require any up-front processing and fast feedback results, and it does not require mod_perl adjustments to make your server's memory image smaller. PHP consumes less resources, and when PHP is part of the Apache Web server, the running code does not need to invoke an external binary, and the server does not incur any additional burden.
public class Phpapplicationportlet extends Genericportlet