You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@portals.apache.org by at...@apache.org on 2012/12/16 19:11:09 UTC
svn commit: r1422646 [2/6] - in /portals/site-live/bridges: ./
bridges-common/ bridges-frameworks/ bridges-groovy/ bridges-jsf/
bridges-perl/ bridges-php/ bridges-portletfilter/ bridges-script/
bridges-struts/ bridges-velocity/ css/ images/ images/logos/
Added: portals/site-live/bridges/bridges-jsf/myfaces-demo.html
URL: http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-jsf/myfaces-demo.html?rev=1422646&view=auto
==============================================================================
--- portals/site-live/bridges/bridges-jsf/myfaces-demo.html (added)
+++ portals/site-live/bridges/bridges-jsf/myfaces-demo.html Sun Dec 16 18:11:05 2012
@@ -0,0 +1,304 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+
+
+
+
+
+
+
+
+
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Apache Portals Bridges - Jetspeed MyFaces Demo Portlet Configuration</title>
+ <style type="text/css" media="all">
+ @import url("../css/maven-base.css");
+ @import url("../css/maven-theme.css");
+ @import url("../css/site.css");
+ </style>
+ <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+ </head>
+ <body class="composite">
+ <div id="banner">
+ <a href="http://portals.apache.org/" id="bannerLeft">
+
+ <img src="../images/apache-portals.gif" alt="" />
+
+ </a>
+ <a href="http://portals.apache.org/bridges/" id="bannerRight">
+
+ Apache Portals Bridges
+
+ </a>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+
+
+
+
+
+
+
+
+ <div class="xleft">
+ Last Published: 29 September 2011
+ </div>
+ <div class="xright"> <a href="http://portals.apache.org/" class="externalLink">Portals</a>
+ |
+ <a href="http://portals.apache.org/applications" class="externalLink">Applications</a>
+ |
+ <a href="http://portals.apache.org/jetspeed-2" class="externalLink">Jetspeed-2</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=168" class="externalLink">JSR-168</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=286" class="externalLink">JSR-286</a>
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+
+
+
+
+
+
+
+
+ <h5>Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../index.html">Overview</a>
+ </li>
+
+ <li class="none">
+ <a href="../news.html">News and Status</a>
+ </li>
+ </ul>
+ <h5>Current Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../bridges-common/index.html">Common Utilities and Interfaces</a>
+ </li>
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-struts/index.html">Struts Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-velocity/index.html">Velocity Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-script/index.html">Script Bridge</a>
+ </li>
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-groovy/index.html">Groovy Bridge</a>
+ </li>
+ </ul>
+ <h5>Archived Portals Bridges</h5>
+ <ul>
+
+
+
+
+
+
+
+ <li class="expanded">
+ <a href="../bridges-jsf/index.html">JSF Bridge</a>
+ <ul>
+
+ <li class="none">
+ <a href="../bridges-jsf/guide.html">Guide</a>
+ </li>
+
+ <li class="none">
+ <strong>MyFaces Demo</strong>
+ </li>
+ </ul>
+ </li>
+
+
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-php/index.html">PHP Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-perl/index.html">Perl Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-portletfilter/index.html">Portlet Filter</a>
+ </li>
+ </ul>
+ <h5>Get Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../download.html">Download</a>
+ </li>
+
+ <li class="none">
+ <a href="../release-notes.html">Release Notes</a>
+ </li>
+ </ul>
+ <h5>Support</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../team-list.html">Project Team</a>
+ </li>
+
+ <li class="none">
+ <a href="../license.html">Project License</a>
+ </li>
+
+ <li class="none">
+ <a href="../mail-lists.html">Mailing List</a>
+ </li>
+
+ <li class="none">
+ <a href="../issue-tracking.html">Issue Tracking</a>
+ </li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="../images/logos/maven-feather.png"></img>
+ </a>
+
+
+
+
+
+
+
+
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
+ <subtitle></subtitle><authors><person name="David Le Strat" email="dlestrat@apache.org"></authors><div class="section"><h2><a name="Introduction"></a>Introduction</h2>
+<p>
+Jetspeed MyFaces Demo Portlet leverages Sun's Guess Number reference implementation sample application to
+illustrate how a MyFaces based portlet using Jetspeed 2 JSF bridge should be configured.
+</p>
+<p>
+Jetspeed 2 provides a JSF bridge implementation to support JSF with the Portlet Specifications. This section describes
+the necessary configuration required in order to use Jetspeed 2 JSF bridge.
+</p>
+</div>
+<div class="section"><h2><a name="Configuration_MyFaces_as_a_Portlet"></a>Configuration MyFaces as a Portlet</h2>
+<p>
+The modifications required in order to deploy a MyFaces application as a portlet need to be made to the
+<i>portlet.xml</i> file. An <i><init-param></i> should be added to the <i>portlet.xml</i> as described below:
+<div class="source"><pre>
+<init-param>
+ <name>ViewPage</name>
+ <value>/greeting.jsp</value>
+</init-param>
+</pre>
+</div>
+</p>
+<p>
+The parameter <i>ViewPage</i> indicates to the <i>org.apache.portals.bridges.jsf.FacesPortlet</i> which view
+should be used as a default view.
+</p>
+<p>
+Additionally, the <portlet-class> element should specify the MyFaces generic portlet implementation as described
+below:
+<div class="source"><pre>
+<portlet-class>org.apache.portals.bridges.jsf.FacesPortlet</portlet-class>
+</pre>
+</div>
+</p>
+<p>
+This final <i>portlet.xml</i> should look like:
+<div class="source"><pre>
+<portlet id="guessNumber">
+ <init-param>
+ <name>ViewPage</name>
+ <value>/greeting.jsp</value>
+ </init-param>
+ <description>JSF GuessNumber Portlet - Using J2 JSF Bridge</description>
+ <portlet-name>guessNumber</portlet-name>
+ <display-name>JSF GuessNumber Portlet - J2 JSF Bridge</display-name>
+ <portlet-class>org.apache.portals.bridges.jsf.FacesPortlet</portlet-class>
+
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>VIEW</portlet-mode>
+ <portlet-mode>EDIT</portlet-mode>
+ <portlet-mode>HELP</portlet-mode>
+ </supports>
+
+ <portlet-info>
+ <title>GuessNumber Portlet</title>
+ <short-title>guessNumber</short-title>
+ </portlet-info>
+</portlet>
+</pre>
+</div>
+</p>
+</div>
+
+ </div>
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">©
+ 2004-2011
+
+ Apache Software Foundation
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ </body>
+</html>
Propchange: portals/site-live/bridges/bridges-jsf/myfaces-demo.html
------------------------------------------------------------------------------
svn:executable = *
Added: portals/site-live/bridges/bridges-perl/index.html
URL: http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-perl/index.html?rev=1422646&view=auto
==============================================================================
--- portals/site-live/bridges/bridges-perl/index.html (added)
+++ portals/site-live/bridges/bridges-perl/index.html Sun Dec 16 18:11:05 2012
@@ -0,0 +1,250 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+
+
+
+
+
+
+
+
+
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Apache Portals Bridges - Perl Bridge Summary</title>
+ <style type="text/css" media="all">
+ @import url("../css/maven-base.css");
+ @import url("../css/maven-theme.css");
+ @import url("../css/site.css");
+ </style>
+ <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+ </head>
+ <body class="composite">
+ <div id="banner">
+ <a href="http://portals.apache.org/" id="bannerLeft">
+
+ <img src="../images/apache-portals.gif" alt="" />
+
+ </a>
+ <a href="http://portals.apache.org/bridges/" id="bannerRight">
+
+ Apache Portals Bridges
+
+ </a>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+
+
+
+
+
+
+
+
+ <div class="xleft">
+ Last Published: 29 September 2011
+ </div>
+ <div class="xright"> <a href="http://portals.apache.org/" class="externalLink">Portals</a>
+ |
+ <a href="http://portals.apache.org/applications" class="externalLink">Applications</a>
+ |
+ <a href="http://portals.apache.org/jetspeed-2" class="externalLink">Jetspeed-2</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=168" class="externalLink">JSR-168</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=286" class="externalLink">JSR-286</a>
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+
+
+
+
+
+
+
+
+ <h5>Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../index.html">Overview</a>
+ </li>
+
+ <li class="none">
+ <a href="../news.html">News and Status</a>
+ </li>
+ </ul>
+ <h5>Current Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../bridges-common/index.html">Common Utilities and Interfaces</a>
+ </li>
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-struts/index.html">Struts Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-velocity/index.html">Velocity Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-script/index.html">Script Bridge</a>
+ </li>
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-groovy/index.html">Groovy Bridge</a>
+ </li>
+ </ul>
+ <h5>Archived Portals Bridges</h5>
+ <ul>
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-jsf/index.html">JSF Bridge</a>
+ </li>
+
+
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-php/index.html">PHP Bridge</a>
+ </li>
+
+ <li class="none">
+ <strong>Perl Bridge</strong>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-portletfilter/index.html">Portlet Filter</a>
+ </li>
+ </ul>
+ <h5>Get Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../download.html">Download</a>
+ </li>
+
+ <li class="none">
+ <a href="../release-notes.html">Release Notes</a>
+ </li>
+ </ul>
+ <h5>Support</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../team-list.html">Project Team</a>
+ </li>
+
+ <li class="none">
+ <a href="../license.html">Project License</a>
+ </li>
+
+ <li class="none">
+ <a href="../mail-lists.html">Mailing List</a>
+ </li>
+
+ <li class="none">
+ <a href="../issue-tracking.html">Issue Tracking</a>
+ </li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="../images/logos/maven-feather.png"></img>
+ </a>
+
+
+
+
+
+
+
+
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
+ <authors><person name="Roger Ruttimann" email="rogerrut@apache.org"></authors><div class="section"><h2><a name="Summary"></a>Summary</h2>
+<p>
+ Perl Bridge Overview
+<ul><li>Designed to run existing perl applications inside the portal</li>
+<li>Minimal re-coding of the perl required.</li>
+<li>Usage of Java Script might require some code modifications.</li>
+<li>Executes perl scripts in a command shell and rewrites output HTML.</li>
+<li>Relative URL's are converted to Portlet Actions.</li>
+<li>Invocation from other portlets pass parameters as a session object.</li>
+<li>Slower than running on Apache Web Server.</li>
+</ul>
+</p>
+<P>Communication
+ <ul><li>Portlet sees Parameters posted to itself (JSR-168 restriction)</li>
+<li>Invokation from another portlet through a session object.</li>
+<li>ScriptRuntimeData class can be used to pass parameters to a PHP /Perl portlet</li>
+<li>Portlets process query arguments (GET) and Parameters (POST)</li>
+</ul>
+</P></div>
+
+ </div>
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">©
+ 2004-2011
+
+ Apache Software Foundation
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ </body>
+</html>
Propchange: portals/site-live/bridges/bridges-perl/index.html
------------------------------------------------------------------------------
svn:executable = *
Added: portals/site-live/bridges/bridges-php/demo.html
URL: http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-php/demo.html?rev=1422646&view=auto
==============================================================================
--- portals/site-live/bridges/bridges-php/demo.html (added)
+++ portals/site-live/bridges/bridges-php/demo.html Sun Dec 16 18:11:05 2012
@@ -0,0 +1,268 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+
+
+
+
+
+
+
+
+
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Apache Portals Bridges - PHP Bridge Demo</title>
+ <style type="text/css" media="all">
+ @import url("../css/maven-base.css");
+ @import url("../css/maven-theme.css");
+ @import url("../css/site.css");
+ </style>
+ <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+ </head>
+ <body class="composite">
+ <div id="banner">
+ <a href="http://portals.apache.org/" id="bannerLeft">
+
+ <img src="../images/apache-portals.gif" alt="" />
+
+ </a>
+ <a href="http://portals.apache.org/bridges/" id="bannerRight">
+
+ Apache Portals Bridges
+
+ </a>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+
+
+
+
+
+
+
+
+ <div class="xleft">
+ Last Published: 29 September 2011
+ </div>
+ <div class="xright"> <a href="http://portals.apache.org/" class="externalLink">Portals</a>
+ |
+ <a href="http://portals.apache.org/applications" class="externalLink">Applications</a>
+ |
+ <a href="http://portals.apache.org/jetspeed-2" class="externalLink">Jetspeed-2</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=168" class="externalLink">JSR-168</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=286" class="externalLink">JSR-286</a>
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+
+
+
+
+
+
+
+
+ <h5>Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../index.html">Overview</a>
+ </li>
+
+ <li class="none">
+ <a href="../news.html">News and Status</a>
+ </li>
+ </ul>
+ <h5>Current Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../bridges-common/index.html">Common Utilities and Interfaces</a>
+ </li>
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-struts/index.html">Struts Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-velocity/index.html">Velocity Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-script/index.html">Script Bridge</a>
+ </li>
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-groovy/index.html">Groovy Bridge</a>
+ </li>
+ </ul>
+ <h5>Archived Portals Bridges</h5>
+ <ul>
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-jsf/index.html">JSF Bridge</a>
+ </li>
+
+
+
+
+
+
+
+
+
+ <li class="expanded">
+ <a href="../bridges-php/index.html">PHP Bridge</a>
+ <ul>
+
+ <li class="none">
+ <a href="../bridges-php/getting-started.html">Getting Started</a>
+ </li>
+
+ <li class="none">
+ <strong>PHP Demo Application</strong>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-php/portlets.html">Configuring Portlets</a>
+ </li>
+ </ul>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-perl/index.html">Perl Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-portletfilter/index.html">Portlet Filter</a>
+ </li>
+ </ul>
+ <h5>Get Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../download.html">Download</a>
+ </li>
+
+ <li class="none">
+ <a href="../release-notes.html">Release Notes</a>
+ </li>
+ </ul>
+ <h5>Support</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../team-list.html">Project Team</a>
+ </li>
+
+ <li class="none">
+ <a href="../license.html">Project License</a>
+ </li>
+
+ <li class="none">
+ <a href="../mail-lists.html">Mailing List</a>
+ </li>
+
+ <li class="none">
+ <a href="../issue-tracking.html">Issue Tracking</a>
+ </li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="../images/logos/maven-feather.png"></img>
+ </a>
+
+
+
+
+
+
+
+
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
+ <authors><person name="Roger Ruttimann" email="rogerrut@apache.org"></authors><div class="section"><h2><a name="Setting_up_the_PHP_Demo"></a>Setting up the PHP Demo</h2>
+<p>
+The php demo uses a backed database (MySQL) that simulates
+a simple machine database.
+</p>
+<p>
+the php file in hosts/conf/config.php defines the database and
+the connection parameter that the application will use. Change
+it to your needs.
+</p>
+<p>
+Create a database (I used hosts) and populate it with the script
+found in sql/php-demo.sql
+</p>
+<p>
+The php-demo portlet is configured to use the following start page:
+hosts/index.php
+</p>
+<p>
+That's it!
+Questions/problems: jetspeed-user@portals.apache.org
+</p>
+</div>
+
+ </div>
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">©
+ 2004-2011
+
+ Apache Software Foundation
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ </body>
+</html>
Propchange: portals/site-live/bridges/bridges-php/demo.html
------------------------------------------------------------------------------
svn:executable = *
Added: portals/site-live/bridges/bridges-php/getting-started.html
URL: http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-php/getting-started.html?rev=1422646&view=auto
==============================================================================
--- portals/site-live/bridges/bridges-php/getting-started.html (added)
+++ portals/site-live/bridges/bridges-php/getting-started.html Sun Dec 16 18:11:05 2012
@@ -0,0 +1,262 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+
+
+
+
+
+
+
+
+
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Apache Portals Bridges - PHP Bridge Getting Started</title>
+ <style type="text/css" media="all">
+ @import url("../css/maven-base.css");
+ @import url("../css/maven-theme.css");
+ @import url("../css/site.css");
+ </style>
+ <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+ </head>
+ <body class="composite">
+ <div id="banner">
+ <a href="http://portals.apache.org/" id="bannerLeft">
+
+ <img src="../images/apache-portals.gif" alt="" />
+
+ </a>
+ <a href="http://portals.apache.org/bridges/" id="bannerRight">
+
+ Apache Portals Bridges
+
+ </a>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+
+
+
+
+
+
+
+
+ <div class="xleft">
+ Last Published: 29 September 2011
+ </div>
+ <div class="xright"> <a href="http://portals.apache.org/" class="externalLink">Portals</a>
+ |
+ <a href="http://portals.apache.org/applications" class="externalLink">Applications</a>
+ |
+ <a href="http://portals.apache.org/jetspeed-2" class="externalLink">Jetspeed-2</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=168" class="externalLink">JSR-168</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=286" class="externalLink">JSR-286</a>
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+
+
+
+
+
+
+
+
+ <h5>Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../index.html">Overview</a>
+ </li>
+
+ <li class="none">
+ <a href="../news.html">News and Status</a>
+ </li>
+ </ul>
+ <h5>Current Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../bridges-common/index.html">Common Utilities and Interfaces</a>
+ </li>
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-struts/index.html">Struts Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-velocity/index.html">Velocity Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-script/index.html">Script Bridge</a>
+ </li>
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-groovy/index.html">Groovy Bridge</a>
+ </li>
+ </ul>
+ <h5>Archived Portals Bridges</h5>
+ <ul>
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-jsf/index.html">JSF Bridge</a>
+ </li>
+
+
+
+
+
+
+
+
+
+ <li class="expanded">
+ <a href="../bridges-php/index.html">PHP Bridge</a>
+ <ul>
+
+ <li class="none">
+ <strong>Getting Started</strong>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-php/demo.html">PHP Demo Application</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-php/portlets.html">Configuring Portlets</a>
+ </li>
+ </ul>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-perl/index.html">Perl Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-portletfilter/index.html">Portlet Filter</a>
+ </li>
+ </ul>
+ <h5>Get Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../download.html">Download</a>
+ </li>
+
+ <li class="none">
+ <a href="../release-notes.html">Release Notes</a>
+ </li>
+ </ul>
+ <h5>Support</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../team-list.html">Project Team</a>
+ </li>
+
+ <li class="none">
+ <a href="../license.html">Project License</a>
+ </li>
+
+ <li class="none">
+ <a href="../mail-lists.html">Mailing List</a>
+ </li>
+
+ <li class="none">
+ <a href="../issue-tracking.html">Issue Tracking</a>
+ </li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="../images/logos/maven-feather.png"></img>
+ </a>
+
+
+
+
+
+
+
+
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
+ <authors><person name="Roger Ruttimann" email="rogerrut@apache.org"></authors><div class="section"><h2><a name="Getting_Started"></a>Getting Started</h2>
+<TABLE WIDTH="100%" BORDER="1" BORDERCOLOR="#000000" CELLPADDING="4" CELLSPACING="0" FRAME="BELOW" RULES="GROUPS" STYLE="page-break-before: always"><COLGROUP><COL WIDTH="74*"><COL WIDTH="88*"></COLGROUP><COLGROUP><COL WIDTH="94*"></COLGROUP><THEAD><TR><TH COLSPAN="3" WIDTH="100%" VALIGN="TOP"><P>The following document describes how to install and configure
+ your php-Applications</P></TH></TR></THEAD><TBODY><TR VALIGN="TOP"><TD COLSPAN="2" WIDTH="63%"><P><U><B>System requirements</B></U></P></TD><TD WIDTH="37%"><P><U><B>Resources</B></U></P></TD></TR><TR VALIGN="TOP"><TD COLSPAN="2" WIDTH="63%"><P><FONT SIZE="2">The PHP library needs to be in the path of the
+ servlet container so that it can get invoked from the portlet.
+ The library is platform specific. Download the library from the
+ PHP site or from the links on the left.</FONT></P></TD><TD ROWSPAN="4" WIDTH="37%"><UL><LI><P><FONT SIZE="2">Linux: </FONT><A HREF="http://www.bluesunrise.com/jetspeed-2/bridges/php/dist/libphp4.so"><FONT SIZE="2">libphp4.so</FONT></A></P></LI><LI><P><FONT SIZE="2">Windows: </FONT><A HREF="http://www.bluesunrise.com/jetspeed-2/bridges/php/dist/php4ts.dll"><FONT SIZE="2">php4ts.dll</FONT></A><FONT SIZE="2">& </FONT><A HREF="http://www.bluesunrise.com/jetspeed-2/bridges/php/dist/phpsrvlt.dll"><FONT SIZE="2">phpsrvlt.dll</FONT></A></P></LI><LI><P><FONT SIZE="2">Servlet interface between PHP libraries and portlets. The package
+ is automatically downloaded to the maven/repository/itgroundwork/jars
+ directory during the build.<A HREF="http://www.bluesunrise.com/maven/itgroundwork/jars/phpportlet-1.0.jar">phportlet-1.0.jar</A></FONT></P></LI><LI><LI><FONT SIZE="2"><P>Entire source tree for PHP 4.3.6 which was used for building the shared
+ libraries used by the portlet. PHP4 included the servlet and java
+ extensions. The java and the servlet subdirectories were modified to work
+ with the portlet part of the Portals Bridges Project</P><P>Note: This version was successfully tested on Linux</P><P>Source: <A HREF="http://www.bluesunrise.com/jetspeed-2/bridges/php/src/source-php-portlet-4.3.6.tar.gz">PHP 4.3.6 source with modified java & servlet extension</A></P></FONT></LI><LI><FONT SIZE="2"><P>In PHP 5 the Java and Servlet extensions were removed from the core product.
+ They are only available in the CVS repository. An initial effort went in to
+ upgrade it to PHP5 API's. The source includes the modified <A HREF="http://www.bluesunrise.com/jetspeed-2/bridges/php/src/source-php-portlet-5.0.4.tar.gz">Extensions for PHP 5.0.4 (java & servlet)</A></P><P>Note: This version was tested with PHP 5 on Linux but it wasn't as stable as
+ version 4.x. Using any PHP objects crashed tomcat. Running PHP 4.x style
+ code worked without any problems and was stable. </P></FONT></LI></UL></TD></TR></TBODY><TBODY><TR><TD COLSPAN="2" WIDTH="63%" VALIGN="TOP"><P><FONT SIZE="3"><U><B>Setup</B></U></FONT></P></TD></TR><TR VALIGN="TOP"><TD WIDTH="29%"><P><FONT SIZE="2">Linux</FONT></P></TD><TD WIDTH="34%"><P><FONT SIZE="2">Windows</FONT></P></TD></TR><TR VALIGN="TOP"><TD WIDTH="29%"><P><FONT SIZE="2">Download libphp4.so and add the directory
+ containing the library to the environment var <B>LD_LIBRARY_PATH</B>.</FONT></P><P><BR></P></TD><TD WIDTH="34%"><P><FONT SIZE="2">Download php4ts.dll and phpsrvlt.dll and add the
+ directory containing the libraries to the <B>PATH.</B></FONT></P></TD></TR></TBODY></TABLE></div>
+
+ </div>
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">©
+ 2004-2011
+
+ Apache Software Foundation
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ </body>
+</html>
Propchange: portals/site-live/bridges/bridges-php/getting-started.html
------------------------------------------------------------------------------
svn:executable = *
Added: portals/site-live/bridges/bridges-php/index.html
URL: http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-php/index.html?rev=1422646&view=auto
==============================================================================
--- portals/site-live/bridges/bridges-php/index.html (added)
+++ portals/site-live/bridges/bridges-php/index.html Sun Dec 16 18:11:05 2012
@@ -0,0 +1,285 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+
+
+
+
+
+
+
+
+
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Apache Portals Bridges - PHP Bridge Summary</title>
+ <style type="text/css" media="all">
+ @import url("../css/maven-base.css");
+ @import url("../css/maven-theme.css");
+ @import url("../css/site.css");
+ </style>
+ <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+ </head>
+ <body class="composite">
+ <div id="banner">
+ <a href="http://portals.apache.org/" id="bannerLeft">
+
+ <img src="../images/apache-portals.gif" alt="" />
+
+ </a>
+ <a href="http://portals.apache.org/bridges/" id="bannerRight">
+
+ Apache Portals Bridges
+
+ </a>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+
+
+
+
+
+
+
+
+ <div class="xleft">
+ Last Published: 29 September 2011
+ </div>
+ <div class="xright"> <a href="http://portals.apache.org/" class="externalLink">Portals</a>
+ |
+ <a href="http://portals.apache.org/applications" class="externalLink">Applications</a>
+ |
+ <a href="http://portals.apache.org/jetspeed-2" class="externalLink">Jetspeed-2</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=168" class="externalLink">JSR-168</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=286" class="externalLink">JSR-286</a>
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+
+
+
+
+
+
+
+
+ <h5>Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../index.html">Overview</a>
+ </li>
+
+ <li class="none">
+ <a href="../news.html">News and Status</a>
+ </li>
+ </ul>
+ <h5>Current Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../bridges-common/index.html">Common Utilities and Interfaces</a>
+ </li>
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-struts/index.html">Struts Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-velocity/index.html">Velocity Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-script/index.html">Script Bridge</a>
+ </li>
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-groovy/index.html">Groovy Bridge</a>
+ </li>
+ </ul>
+ <h5>Archived Portals Bridges</h5>
+ <ul>
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-jsf/index.html">JSF Bridge</a>
+ </li>
+
+
+
+
+
+
+
+
+
+ <li class="expanded">
+ <strong>PHP Bridge</strong>
+ <ul>
+
+ <li class="none">
+ <a href="../bridges-php/getting-started.html">Getting Started</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-php/demo.html">PHP Demo Application</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-php/portlets.html">Configuring Portlets</a>
+ </li>
+ </ul>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-perl/index.html">Perl Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-portletfilter/index.html">Portlet Filter</a>
+ </li>
+ </ul>
+ <h5>Get Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../download.html">Download</a>
+ </li>
+
+ <li class="none">
+ <a href="../release-notes.html">Release Notes</a>
+ </li>
+ </ul>
+ <h5>Support</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../team-list.html">Project Team</a>
+ </li>
+
+ <li class="none">
+ <a href="../license.html">Project License</a>
+ </li>
+
+ <li class="none">
+ <a href="../mail-lists.html">Mailing List</a>
+ </li>
+
+ <li class="none">
+ <a href="../issue-tracking.html">Issue Tracking</a>
+ </li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="../images/logos/maven-feather.png"></img>
+ </a>
+
+
+
+
+
+
+
+
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
+ <authors><person name="Roger Ruttimann" email="rogerrut@apache.org"></authors><div class="section"><h2><a name="Summary"></a>Summary</h2>
+<p>
+ PHP Bridge Overview
+<ul><li>Designed to run existing PHP applications inside the portal</li>
+<li>Minimal re-coding of the required depends on the application.</li>
+<li>Uses PHP Java API to execute PHP and rewrites output HTML.</li>
+<li>Installation of PHP libraries in LD_LIBRARY_PATH</li>
+<li>Major differences between versions (see below)</li>
+<li>Relative URL's are converted to Portlet Actions.</li>
+<li>Invocation from other portlets pass parameters as a session object.</li>
+</ul>
+</p>
+<P>Communication
+ <ul><li>Portlet sees Parameters posted to itself (JSR-168 restriction)</li>
+<li>Invokation from another portlet through a session object.</li>
+<li>ScriptRuntimeData class can be used to pass parameters to a PHP /Perl portlet</li>
+<li>Portlets process query arguments (GET) and Parameters (POST)</li>
+</ul>
+</P></div>
+<div class="section"><h2><a name="Differences_between_PHP4_and_PHP5"></a>Differences between PHP4 and PHP5</h2>
+<P>
+ PHP 4
+ <ul><li>Included Java API and a servlet example which the portlet was based on.</li>
+<li>Just make sure that the Java API is configured</li>
+<li>Build php portlet using the using the PHP JNI headers</li>
+<li>Make sure that the PHP libraries are in the path for tomcat.</li>
+<li>The php-portlet jar is in the class path</li>
+<li>Well performing, stable</li>
+</ul>
+</P><P>
+ PHP 5
+ <ul><li>Java API was dropped from PHP distribution.</li>
+<li>Updated Java API only available in CVS repository of EXT</li>
+<li>Compiling Java API and php 4 based portlet code works</li>
+<li>Running PHP4 application run fine.</li>
+<li>Using any new OO features in PHP 5 crash VM</li>
+<li>Java API unstable need major effort to resolve memory issues
+</li>
+</ul>
+</P></div>
+
+ </div>
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">©
+ 2004-2011
+
+ Apache Software Foundation
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ </body>
+</html>
Propchange: portals/site-live/bridges/bridges-php/index.html
------------------------------------------------------------------------------
svn:executable = *
Added: portals/site-live/bridges/bridges-php/portlets.html
URL: http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-php/portlets.html?rev=1422646&view=auto
==============================================================================
--- portals/site-live/bridges/bridges-php/portlets.html (added)
+++ portals/site-live/bridges/bridges-php/portlets.html Sun Dec 16 18:11:05 2012
@@ -0,0 +1,258 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+
+
+
+
+
+
+
+
+
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Apache Portals Bridges - PHP Bridge Demo</title>
+ <style type="text/css" media="all">
+ @import url("../css/maven-base.css");
+ @import url("../css/maven-theme.css");
+ @import url("../css/site.css");
+ </style>
+ <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+ </head>
+ <body class="composite">
+ <div id="banner">
+ <a href="http://portals.apache.org/" id="bannerLeft">
+
+ <img src="../images/apache-portals.gif" alt="" />
+
+ </a>
+ <a href="http://portals.apache.org/bridges/" id="bannerRight">
+
+ Apache Portals Bridges
+
+ </a>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+
+
+
+
+
+
+
+
+ <div class="xleft">
+ Last Published: 29 September 2011
+ </div>
+ <div class="xright"> <a href="http://portals.apache.org/" class="externalLink">Portals</a>
+ |
+ <a href="http://portals.apache.org/applications" class="externalLink">Applications</a>
+ |
+ <a href="http://portals.apache.org/jetspeed-2" class="externalLink">Jetspeed-2</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=168" class="externalLink">JSR-168</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=286" class="externalLink">JSR-286</a>
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+
+
+
+
+
+
+
+
+ <h5>Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../index.html">Overview</a>
+ </li>
+
+ <li class="none">
+ <a href="../news.html">News and Status</a>
+ </li>
+ </ul>
+ <h5>Current Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../bridges-common/index.html">Common Utilities and Interfaces</a>
+ </li>
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-struts/index.html">Struts Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-velocity/index.html">Velocity Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-script/index.html">Script Bridge</a>
+ </li>
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-groovy/index.html">Groovy Bridge</a>
+ </li>
+ </ul>
+ <h5>Archived Portals Bridges</h5>
+ <ul>
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-jsf/index.html">JSF Bridge</a>
+ </li>
+
+
+
+
+
+
+
+
+
+ <li class="expanded">
+ <a href="../bridges-php/index.html">PHP Bridge</a>
+ <ul>
+
+ <li class="none">
+ <a href="../bridges-php/getting-started.html">Getting Started</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-php/demo.html">PHP Demo Application</a>
+ </li>
+
+ <li class="none">
+ <strong>Configuring Portlets</strong>
+ </li>
+ </ul>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-perl/index.html">Perl Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-portletfilter/index.html">Portlet Filter</a>
+ </li>
+ </ul>
+ <h5>Get Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../download.html">Download</a>
+ </li>
+
+ <li class="none">
+ <a href="../release-notes.html">Release Notes</a>
+ </li>
+ </ul>
+ <h5>Support</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../team-list.html">Project Team</a>
+ </li>
+
+ <li class="none">
+ <a href="../license.html">Project License</a>
+ </li>
+
+ <li class="none">
+ <a href="../mail-lists.html">Mailing List</a>
+ </li>
+
+ <li class="none">
+ <a href="../issue-tracking.html">Issue Tracking</a>
+ </li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="../images/logos/maven-feather.png"></img>
+ </a>
+
+
+
+
+
+
+
+
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
+ <authors><person name="Roger Ruttimann" email="rogerrut@apache.org"></authors><div class="section"><h2><a name="Configuring_Portlets"></a>Configuring Portlets</h2>
+<p>
+To configure a PHP application into your portlet definition, define an init param
+to hold the PHP start page. For example:
+</p>
+<div class="source"><pre>
+ <init-param>
+ <name>StartPage</name>
+ <value>hosts/index.php</value>
+ </init-param>
+</pre>
+</div>
+</div>
+
+ </div>
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">©
+ 2004-2011
+
+ Apache Software Foundation
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ </body>
+</html>
Propchange: portals/site-live/bridges/bridges-php/portlets.html
------------------------------------------------------------------------------
svn:executable = *
Added: portals/site-live/bridges/bridges-portletfilter/index.html
URL: http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-portletfilter/index.html?rev=1422646&view=auto
==============================================================================
--- portals/site-live/bridges/bridges-portletfilter/index.html (added)
+++ portals/site-live/bridges/bridges-portletfilter/index.html Sun Dec 16 18:11:05 2012
@@ -0,0 +1,305 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+
+
+
+
+
+
+
+
+
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Apache Portals Bridges - About Apache Portals Portlet Filter</title>
+ <style type="text/css" media="all">
+ @import url("../css/maven-base.css");
+ @import url("../css/maven-theme.css");
+ @import url("../css/site.css");
+ </style>
+ <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+ </head>
+ <body class="composite">
+ <div id="banner">
+ <a href="http://portals.apache.org/" id="bannerLeft">
+
+ <img src="../images/apache-portals.gif" alt="" />
+
+ </a>
+ <a href="http://portals.apache.org/bridges/" id="bannerRight">
+
+ Apache Portals Bridges
+
+ </a>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+
+
+
+
+
+
+
+
+ <div class="xleft">
+ Last Published: 29 September 2011
+ </div>
+ <div class="xright"> <a href="http://portals.apache.org/" class="externalLink">Portals</a>
+ |
+ <a href="http://portals.apache.org/applications" class="externalLink">Applications</a>
+ |
+ <a href="http://portals.apache.org/jetspeed-2" class="externalLink">Jetspeed-2</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=168" class="externalLink">JSR-168</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=286" class="externalLink">JSR-286</a>
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+
+
+
+
+
+
+
+
+ <h5>Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../index.html">Overview</a>
+ </li>
+
+ <li class="none">
+ <a href="../news.html">News and Status</a>
+ </li>
+ </ul>
+ <h5>Current Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../bridges-common/index.html">Common Utilities and Interfaces</a>
+ </li>
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-struts/index.html">Struts Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-velocity/index.html">Velocity Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-script/index.html">Script Bridge</a>
+ </li>
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-groovy/index.html">Groovy Bridge</a>
+ </li>
+ </ul>
+ <h5>Archived Portals Bridges</h5>
+ <ul>
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-jsf/index.html">JSF Bridge</a>
+ </li>
+
+
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-php/index.html">PHP Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-perl/index.html">Perl Bridge</a>
+ </li>
+
+ <li class="none">
+ <strong>Portlet Filter</strong>
+ </li>
+ </ul>
+ <h5>Get Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../download.html">Download</a>
+ </li>
+
+ <li class="none">
+ <a href="../release-notes.html">Release Notes</a>
+ </li>
+ </ul>
+ <h5>Support</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../team-list.html">Project Team</a>
+ </li>
+
+ <li class="none">
+ <a href="../license.html">Project License</a>
+ </li>
+
+ <li class="none">
+ <a href="../mail-lists.html">Mailing List</a>
+ </li>
+
+ <li class="none">
+ <a href="../issue-tracking.html">Issue Tracking</a>
+ </li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="../images/logos/maven-feather.png"></img>
+ </a>
+
+
+
+
+
+
+
+
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
+ <authors><person name="Shinsuke Sugaya" email="shinsuke@apache.org"></authors><div class="section"><h2><a name="About_Apache_Portals_Portlet_Filter"></a>About Apache Portals Portlet Filter</h2>
+<div class="section"><h3><a name="Overview"></a>Overview</h3>
+<p>
+ FilterPortlet enables you to add processes you want before and after accessing the target portlet.
+ The feature provided by FilterPortlet is like Servlet Filter. (Portlet Filter may be included in
+ the future Portlet Spec, but currently it's not included yet.)
+ </p>
+</div>
+<div class="section"><h3><a name="Class_and_Interface"></a>Class and Interface</h3>
+<p><table class="bodyTable"><tr class="a"><th>Class/Interface</th>
+<th>Description</th>
+</tr>
+<tr class="b"><td>FilterPortlet class</td>
+<td>FilterPortlet wraps the target portlet.</td>
+</tr>
+<tr class="a"><td>PortletFilter interface</td>
+<td>The process you want to add is implemented this interface.</td>
+</tr>
+<tr class="b"><td>PortletFilterChain class</td>
+<td>
+ This class is an object provided to the developer giving a view
+ into the invocation chain of a filtered request for a resource.
+ </td>
+</tr>
+<tr class="a"><td>PortletFilterConfig class</td>
+<td>
+ A filter configuration object used by FilterPortlet to pass
+ information to a filter during initialization.
+ </td>
+</tr>
+</table>
+
+ If you know how to use Servlet Filter, it's easy to use FilterPortlet.
+ </p>
+</div>
+<div class="section"><h3><a name="Example"></a>Example</h3>
+<p>
+ For example, if you create "HelloWorldPortletFilter" as the portlet filter, portlet.xml is:
+ </p>
+<p><div class="source"><pre>
+<portlet-app id="helloworld" version="1.0">
+ <portlet id="FilteredHelloWorld">
+ <portlet-name>FilteredHelloWorld</portlet-name>
+ <display-name>Filtered Hello World</display-name>
+ <description>HelloWorld is a filtered portlet for testing</description>
+ <portlet-class>org.apache.portals.bridges.portletfilter.FilterPortlet</portlet-class>
+ <init-param>
+ <name>portlet-class</name>
+ <value>org.apache.portals.bridges.helloworld.HelloWorldPortlet</value>
+ </init-param>
+ <init-param>
+ <name>portlet-filters</name>
+ <value>org.apache.portals.bridges.helloworld.filter.HelloWorldPortletFilter</value>
+ </init-param>
+ <expiration-cache>-1</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>VIEW</portlet-mode>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <supported-locale>ja</supported-locale>
+ <resource-bundle>org.apache.portals.bridges.helloworld.resources.HelloWorldResources</resource-bundle>
+ <portlet-info>
+ <title>Filtered Hello World</title>
+ <short-title>This is a filtered portlet for testing</short-title>
+ <keywords>Hello,Test,PortletFilter</keywords>
+ </portlet-info>
+ </portlet>
+</portlet-app>
+</pre>
+</div>
+</p>
+</div>
+</div>
+
+ </div>
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">©
+ 2004-2011
+
+ Apache Software Foundation
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ </body>
+</html>
Propchange: portals/site-live/bridges/bridges-portletfilter/index.html
------------------------------------------------------------------------------
svn:executable = *
Added: portals/site-live/bridges/bridges-script/index.html
URL: http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-script/index.html?rev=1422646&view=auto
==============================================================================
--- portals/site-live/bridges/bridges-script/index.html (added)
+++ portals/site-live/bridges/bridges-script/index.html Sun Dec 16 18:11:05 2012
@@ -0,0 +1,647 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+
+
+
+
+
+
+
+
+
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Apache Portals Bridges - Script Bridget Portlet Guide</title>
+ <style type="text/css" media="all">
+ @import url("../css/maven-base.css");
+ @import url("../css/maven-theme.css");
+ @import url("../css/site.css");
+ </style>
+ <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+ </head>
+ <body class="composite">
+ <div id="banner">
+ <a href="http://portals.apache.org/" id="bannerLeft">
+
+ <img src="../images/apache-portals.gif" alt="" />
+
+ </a>
+ <a href="http://portals.apache.org/bridges/" id="bannerRight">
+
+ Apache Portals Bridges
+
+ </a>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+
+
+
+
+
+
+
+
+ <div class="xleft">
+ Last Published: 29 September 2011
+ </div>
+ <div class="xright"> <a href="http://portals.apache.org/" class="externalLink">Portals</a>
+ |
+ <a href="http://portals.apache.org/applications" class="externalLink">Applications</a>
+ |
+ <a href="http://portals.apache.org/jetspeed-2" class="externalLink">Jetspeed-2</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=168" class="externalLink">JSR-168</a>
+ |
+ <a href="http://www.jcp.org/en/jsr/detail?id=286" class="externalLink">JSR-286</a>
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+
+
+
+
+
+
+
+
+ <h5>Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../index.html">Overview</a>
+ </li>
+
+ <li class="none">
+ <a href="../news.html">News and Status</a>
+ </li>
+ </ul>
+ <h5>Current Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../bridges-common/index.html">Common Utilities and Interfaces</a>
+ </li>
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-struts/index.html">Struts Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-velocity/index.html">Velocity Bridge</a>
+ </li>
+
+ <li class="none">
+ <strong>Script Bridge</strong>
+ </li>
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-groovy/index.html">Groovy Bridge</a>
+ </li>
+ </ul>
+ <h5>Archived Portals Bridges</h5>
+ <ul>
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-jsf/index.html">JSF Bridge</a>
+ </li>
+
+
+
+
+
+
+
+
+
+ <li class="collapsed">
+ <a href="../bridges-php/index.html">PHP Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-perl/index.html">Perl Bridge</a>
+ </li>
+
+ <li class="none">
+ <a href="../bridges-portletfilter/index.html">Portlet Filter</a>
+ </li>
+ </ul>
+ <h5>Get Portals Bridges</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../download.html">Download</a>
+ </li>
+
+ <li class="none">
+ <a href="../release-notes.html">Release Notes</a>
+ </li>
+ </ul>
+ <h5>Support</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../team-list.html">Project Team</a>
+ </li>
+
+ <li class="none">
+ <a href="../license.html">Project License</a>
+ </li>
+
+ <li class="none">
+ <a href="../mail-lists.html">Mailing List</a>
+ </li>
+
+ <li class="none">
+ <a href="../issue-tracking.html">Issue Tracking</a>
+ </li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="../images/logos/maven-feather.png"></img>
+ </a>
+
+
+
+
+
+
+
+
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
+ <subtitle></subtitle><authors><person name="Woonsan Ko" email="woonsan@apache.org"></authors><div class="section"><h2><a name="Script_Bridget_Portlet_Guide"></a>Script Bridget Portlet Guide</h2>
+<p>
+ This guide provides a tutorial for creating portlets with
+ <a href="http://www.jcp.org/en/jsr/detail?id=223" class="externalLink">JSR-223</a>
+ compliant scripting languages.
+ </p>
+<div class="section"><h3><a name="a1._The_ScriptPortlet"></a>1. The ScriptPortlet</h3>
+<p>
+ The <CODE>ScriptPortlet</CODE> (<CODE>org.apache.portals.bridges.script.ScriptPortlet</CODE>) is the bridge portlet
+ which evaluates the scripted portlet source to initialize a portlet instance
+ and dispatch each invocation to the scripted portlet instance.
+ </p>
+<p>
+ In the portlet descriptor (portlet.xml), the <CODE>ScriptPortlet</CODE> is provided as portlet-class.
+ The <CODE>ScriptPortlet</CODE> is configured with some init parameters for script sources
+ which implement the real portlet or the real portlet preferences validator.
+ </p>
+<p><img src="../images/scriptload.png" /><br />
+<ol type="1"><li>The <CODE>ScriptPortlet</CODE> initializes a <CODE>ScriptEngine</CODE> based on either engine name or the type of the script source.</li>
+<li>
+ The <CODE>ScriptPortlet</CODE> evaluates the script source to load a scripted portlet.
+ If script preferences validator is also configured, it evaluates the validator script source to load a scripted preferences validator.
+ </li>
+<li>
+ The <CODE>ScriptEngine</CODE> returns an evaluated object to the <CODE>ScriptPortlet</CODE>.
+ Now, the <CODE>ScriptPortlet</CODE> dispatches all the invocations to the script objects.
+ <br />
+
+ The evaluated object from the portlet script source must be either a <CODE>javax.portlet.Portlet</CODE> instance or a <CODE>javax.portlet.Portlet</CODE> class.
+ <br />
+
+ Also, the evaluated object from the portlet script preferences validator must be either a <CODE>javax.portlet.PreferencesValidator</CODE> instance or a <CODE>javax.portlet.PreferencesValidator</CODE> class.
+ </li>
+</ol>
+</p>
+<p>
+ With the <CODE>ScriptPortlet</CODE> bridge portlet, you can just provide your script sources.
+ The <CODE>ScriptPortlet</CODE> will care everything to create <CODE>ScriptEngine</CODE> and to use your script codes.
+ </p>
+</div>
+<div class="section"><h3><a name="a2._Scripted_Hello_World_Portlets_with_Groovy_JRuby_Jython_BeanShell_and_Rhino_JavaScript"></a>2. Scripted 'Hello World!' Portlets with Groovy, JRuby, Jython, BeanShell and Rhino JavaScript</h3>
+<p>If you use a script language which is <a href="http://www.jcp.org/en/jsr/detail?id=223" class="externalLink">JSR-223</a>
+ compliant, then you can implement full-featured portlets with the script language.</p>
+<p>Here are "Hello, World!" example portlets implemented by Groovy, JRuby, Jython, BeanShell or Rhino JavaScript. You can choose any.</p>
+<h4>Groovy example</h4>
+<p>
+ In this example, <CODE>HelloGroovy.groovy</CODE> implements a simple portlet in Groovy.
+ </p>
+<p><strong>Note:</strong> The last statement creates a portlet instance to be passed
+ to the <CODE>ScriptPortlet</CODE> as script evaluation result via the <CODE>ScriptEngine</CODE>.
+ </p>
+<p><div class="source"><pre>
+import javax.portlet.GenericPortlet;
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.EventRequest;
+import javax.portlet.EventResponse;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.ResourceRequest;
+import javax.portlet.ResourceResponse;
+
+/**
+ * HelloGroovy.groovy
+ */
+public class HelloGroovy extends GenericPortlet
+{
+ public void doView(RenderRequest request, RenderResponse response)
+ {
+ String greeting = "<H1>Hello, Groovy!</H1>";
+ response.getWriter().println(greeting);
+ }
+}
+
+// Return portlet instance as a last evaluated object
+// because ScriptPortlet expects the evaluated result object
+// as a portlet class or non-initialized portlet instance.
+new HelloGroovy();
+ </pre>
+</div>
+</p>
+<h4>JRuby example</h4>
+<p>
+ In this example, <CODE>HelloJRuby.rb</CODE> implements a simple portlet in JRuby.
+ </p>
+<p><strong>Note:</strong> The last statement creates a portlet instance to be passed
+ to the <CODE>ScriptPortlet</CODE> as script evaluation result via the <CODE>ScriptEngine</CODE>.
+ </p>
+<p><div class="source"><pre>
+require 'java'
+
+#
+# HelloJRuby.rb
+#
+class HelloJRuby < javax.portlet.GenericPortlet
+
+ def doView(request, response)
+ greeting = "<H1>Hello, JRuby!</H1>"
+ response.writer.println(greeting)
+ end
+
+end
+
+# Return portlet instance as a last evaluated object
+# because ScriptPortlet expects the evaluated result object
+# as a portlet class or non-initialized portlet instance.
+HelloJRuby.new
+ </pre>
+</div>
+</p>
+<h4>Jython example</h4>
+<p>
+ In this example, <CODE>HelloJython.py</CODE> implements a simple portlet in Jython.
+ </p>
+<p><strong>Note:</strong> The last statement creates a portlet instance to be passed
+ to the <CODE>ScriptPortlet</CODE> as script evaluation result via the <CODE>ScriptEngine</CODE>.
+ </p>
+<p><div class="source"><pre>
+from javax.portlet import GenericPortlet
+
+#
+# HelloJython.py
+#
+class HelloJython(GenericPortlet):
+ def doView(self, request, response):
+ greeting = "<H1>Hello, Jython!</H1>"
+ response.writer.println(greeting)
+
+
+
+# Return portlet instance as a last evaluated object
+# because ScriptPortlet expects the evaluated result object
+# as a portlet class or non-initialized portlet instance.
+value = HelloJython()
+ </pre>
+</div>
+</p>
+<h4>BeanShell example</h4>
+<p>
+ In this example, <CODE>HelloBeanShell.bsh</CODE> implements a simple portlet in BeanShell.
+ </p>
+<p><strong>Note:</strong> The last statement creates a portlet instance to be passed
+ to the <CODE>ScriptPortlet</CODE> as script evaluation result via the <CODE>ScriptEngine</CODE>.
+ </p>
+<p><div class="source"><pre>
+import javax.portlet.GenericPortlet;
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.EventRequest;
+import javax.portlet.EventResponse;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.ResourceRequest;
+import javax.portlet.ResourceResponse;
+
+/**
+ * HelloBeanShell.bsh
+ */
+class HelloBeanShell extends GenericPortlet
+{
+ public void doView(RenderRequest request, RenderResponse response)
+ {
+ String greeting = "<H1>Hello, BeanShell!</H1>";
+ response.getWriter().println(greeting);
+ }
+}
+
+// Return portlet instance as a last evaluated object
+// because ScriptPortlet expects the evaluated result object
+// as a portlet class or non-initialized portlet instance.
+new HelloBeanShell();
+ </pre>
+</div>
+</p>
+<h4>Rhino JavaScript example</h4>
+<p>
+ In this example, <CODE>HelloRhino.js</CODE> implements a simple portlet in Rhino JavaScript.
+ </p>
+<p><strong>Note:</strong> The last statement creates a portlet instance to be passed
+ to the <CODE>ScriptPortlet</CODE> as script evaluation result via the <CODE>ScriptEngine</CODE>.
+ </p>
+<p><div class="source"><pre>
+importPackage(Packages.javax.portlet);
+
+/**
+ * HelloRhino.js
+ */
+
+// Return portlet instance as a last evaluated object
+// because ScriptPortlet expects the evaluated result object
+// as a portlet class or non-initialized portlet instance.
+new GenericPortlet(
+ {
+ doView: function(request, response) {
+ greeting = "<H1>Hello, Rhino JavaScript!</H1>";
+ response.getWriter().println(greeting);
+ }
+ }
+);
+ </pre>
+</div>
+</p>
+</div>
+<div class="section"><h3><a name="a3._The_portlet.xml"></a>3. The portlet.xml</h3>
+<p>Edit your portlet.xml like the following example.</p>
+<p>Please refer to the comments on each init parameter for details.</p>
+<p><div class="source"><pre>
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app id="velocitysimplest" version="1.0">
+
+ <portlet>
+ <portlet-name>HelloGroovy</portlet-name>
+ <display-name>Hello Groovy</display-name>
+ <portlet-class>org.apache.portals.bridges.script.ScriptPortlet</portlet-class>
+
+ <!-- Optional init parameter for script engine
+ If this init parameter is not set, the ScriptPortlet will look up a script engine automatically
+ by the mimeType or the extension of the script source file. -->
+ <init-param>
+ <name>engine</name>
+ <!--
+ Note: You can set other script engine which support JSR-223 ScriptEngine
+ such as 'groovy', 'jruby', 'jython'.
+ -->
+ <value>groovy</value>
+ </init-param>
+
+ <!-- Optional init parameter for the key for portlet/preferencesValidator class or
+ portlet/preferencesValidator instance which is evaluated and returned by the script.
+ By default, when this init parameter is not set, ScriptPortlet retrieves
+ the last evaluated object from the script.
+ If you set this to 'value', then ScriptPortlet retrieves an object named 'value'
+ from the bindings of the script engine.
+ Depending on script engines, this init parameter should be properly configured
+ because some script engines do not return the last evaluated object. -->
+ <init-param>
+ <name>eval-key</name>
+ <value>value</value>
+ </init-param>
+
+ <!-- Required init parameter for script source path -->
+ <init-param>
+ <name>source</name>
+ <!--
+ Note: You can set script source in three ways.
+ The first is to use context relative path,
+ the second is to use file: url,
+ and the third is to classpath: uri.
+ Here are the examples for each way.
+ -->
+ <!--
+ <value>/WEB-INF/groovy/HelloGroovy.groovy</value>
+ <value>file:/C:/Program Files/Tomcat/webapps/demo/WEB-INF/groovy/HelloGroovy.groovy</value>
+ <value>classpath:org/apache/portals/bridges/script/HelloGroovy.groovy</value>
+ -->
+ <value>classpath:org/apache/portals/bridges/script/HelloGroovy.groovy</value>
+ </init-param>
+
+ <!-- Optional init parameter for script file content encoding. The default value is 'UTF-8'. -->
+ <init-param>
+ <name>encoding</name>
+ <value>UTF-8</value>
+ </init-param>
+
+ <!-- Optional init parameter for auto-refresh option.
+ If auto-refresh is true, then a modification of script source can be refreshed automatically.
+ By default, this option is set to false. -->
+ <init-param>
+ <name>auto-refresh</name>
+ <value>true</value>
+ </init-param>
+
+ <!-- Optional init parameter for refresh-delay option.
+ When auto-refresh is true, this init parameter sets the milliseconds of automatic refreshing interval.
+ By default, this option is set to 60000 milliseconds (a minute). -->
+ <init-param>
+ <name>refresh-delay</name>
+ <value>60000</value>
+ </init-param>
+
+ <!-- Optional init parameter for script preferences validator path -->
+ <init-param>
+ <name>validator</name>
+ <!--
+ Note: You can set script preferences validator source in three ways.
+ The first is to use context relative path,
+ the second is to use file: url,
+ and the third is to classpath: uri.
+ Here are the examples for each way.
+ -->
+ <!--
+ <value>/WEB-INF/groovy/HelloGroovyPrefsValidator.groovy</value>
+ <value>file:/C:/Program Files/Tomcat/webapps/demo/WEB-INF/groovy/HelloGroovyPrefsValidator.groovy</value>
+ <value>classpath:org/apache/portals/bridges/script/HelloGroovyPrefsValidator.groovy</value>
+ -->
+ <value>classpath:org/apache/portals/bridges/script/HelloGroovyPrefsValidator.groovy</value>
+ </init-param>
+
+ <!-- The followings are not special for ScriptPortlet, but normal configurations for a portlet. -->
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>VIEW</portlet-mode>
+ <portlet-mode>EDIT</portlet-mode>
+ <portlet-mode>HELP</portlet-mode>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>Hello Groovy</title>
+ <short-title>Hello Groovy</short-title>
+ <keywords>demo,groovy</keywords>
+ </portlet-info>
+ <portlet-preferences>
+ <preference>
+ <name>message</name>
+ <value>Hello, Groovy!</value>
+ </preference>
+ <preferences-validator>org.apache.portals.bridges.script.ScriptPortletPreferencesValidator</preferences-validator>
+ </portlet-preferences>
+
+ </portlet>
+
+</portlet-app>
+ </pre>
+</div>
+</p>
+</div>
+<div class="section"><h3><a name="a4._The_Dependency_JARs"></a>4. The Dependency JARs</h3>
+<p>
+ For simplicity, the following dependencies are provided for each script language.
+ </p>
+<h4>For Groovy Portlet Developers</h4>
+<p>You can add the following dependency only in your project to use <CODE>ScriptPortlet</CODE> with your preferred script langauge.</p>
+<p><div class="source"><pre>
+<dependency>
+ <groupId>org.apache.portals.bridges</groupId>
+ <artifactId>portals-bridges-script-dependencies-groovy</artifactId>
+ <version>2.0</version>
+ <type>pom</type>
+</dependency>
+ </pre>
+</div>
+</p>
+<h4>For JRuby Portlet Developers</h4>
+<p>You can add the following dependency only in your project to use <CODE>ScriptPortlet</CODE> with your preferred script langauge.</p>
+<p><div class="source"><pre>
+<dependency>
+ <groupId>org.apache.portals.bridges</groupId>
+ <artifactId>portals-bridges-script-dependencies-jruby</artifactId>
+ <version>2.0</version>
+ <type>pom</type>
+</dependency>
+ </pre>
+</div>
+</p>
+<h4>For Jython Portlet Developers</h4>
+<p>You can add the following dependency only in your project to use <CODE>ScriptPortlet</CODE> with your preferred script langauge.</p>
+<p><div class="source"><pre>
+<dependency>
+ <groupId>org.apache.portals.bridges</groupId>
+ <artifactId>portals-bridges-script-dependencies-jython</artifactId>
+ <version>2.0</version>
+ <type>pom</type>
+</dependency>
+ </pre>
+</div>
+</p>
+<h4>For BeanShell Portlet Developers</h4>
+<p>You can add the following dependency only in your project to use <CODE>ScriptPortlet</CODE> with your preferred script langauge.</p>
+<p><div class="source"><pre>
+<dependency>
+ <groupId>org.apache.portals.bridges</groupId>
+ <artifactId>portals-bridges-script-dependencies-beanshell</artifactId>
+ <version>2.0</version>
+ <type>pom</type>
+</dependency>
+ </pre>
+</div>
+</p>
+<h4>For Rhino JavaScript Portlet Developers</h4>
+<p>You can add the following dependency only in your project to use <CODE>ScriptPortlet</CODE> with your preferred script langauge.</p>
+<p><div class="source"><pre>
+<dependency>
+ <groupId>org.apache.portals.bridges</groupId>
+ <artifactId>portals-bridges-script-dependencies-rhino</artifactId>
+ <version>2.0</version>
+ <type>pom</type>
+</dependency>
+ </pre>
+</div>
+</p>
+</div>
+<div class="section"><h3><a name="a5._Deploy_the_WAR_file"></a>5. Deploy the WAR file</h3>
+<p>
+ After building the war file, copy the war file of your portlet application to
+ <code>$CATALINA_HOME/webapps/jetspeed/WEB-INF/deploy/</code>.
+ Jetspeed-2 will deploy your portlet application automatically.
+ </p>
+</div>
+<div class="section"><h3><a name="a6._The_PSML"></a>6. The PSML</h3>
+<p>
+ Add your script portlet into a portal page.
+ You must have the permission to add portlets into the page.
+ </p>
+</div>
+<div class="section"><h3><a name="a7._Additional_Notes"></a>7. Additional Notes</h3>
+<p><em>Note:</em> You may need to increase the permanent generation size of your JVM to run script portlets without <CODE>OutOfMemoryError</CODE> errors.
+ <br />
+
+ Because JSR-223 Scripting Engine implementations depend on dynamic proxy solutions, it requires more permanent generation space.
+ By default, it is 64MB. Increasing it to be <CODE>-XX:MaxPermSize=128m</CODE> might be a good start.
+ <br />
+
+ Please see <a href="http://wiki.apache.org/tomcat/FAQ/Memory" class="externalLink">http://wiki.apache.org/tomcat/FAQ/Memory</a> for detail.
+ </p>
+</div>
+</div>
+
+ </div>
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">©
+ 2004-2011
+
+ Apache Software Foundation
+
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ </body>
+</html>
Propchange: portals/site-live/bridges/bridges-script/index.html
------------------------------------------------------------------------------
svn:executable = *