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>&lt;init-param&gt;</i> should be added to the <i>portlet.xml</i> as described below:
+<div class="source"><pre>
+&lt;init-param&gt;
+    &lt;name&gt;ViewPage&lt;/name&gt;
+    &lt;value&gt;/greeting.jsp&lt;/value&gt;
+&lt;/init-param&gt;
+</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 &lt;portlet-class&gt; element should specify the MyFaces generic portlet implementation as described
+below:
+<div class="source"><pre>
+&lt;portlet-class&gt;org.apache.portals.bridges.jsf.FacesPortlet&lt;/portlet-class&gt;
+</pre>
+</div>
+</p>
+<p>
+This final <i>portlet.xml</i> should look like:
+<div class="source"><pre>
+&lt;portlet id=&quot;guessNumber&quot;&gt;
+        &lt;init-param&gt;
+            &lt;name&gt;ViewPage&lt;/name&gt;
+            &lt;value&gt;/greeting.jsp&lt;/value&gt;
+        &lt;/init-param&gt;
+        &lt;description&gt;JSF GuessNumber Portlet - Using J2 JSF Bridge&lt;/description&gt;
+        &lt;portlet-name&gt;guessNumber&lt;/portlet-name&gt;
+        &lt;display-name&gt;JSF GuessNumber Portlet - J2 JSF Bridge&lt;/display-name&gt;
+        &lt;portlet-class&gt;org.apache.portals.bridges.jsf.FacesPortlet&lt;/portlet-class&gt;
+
+        &lt;supports&gt;
+            &lt;mime-type&gt;text/html&lt;/mime-type&gt;
+            &lt;portlet-mode&gt;VIEW&lt;/portlet-mode&gt;
+            &lt;portlet-mode&gt;EDIT&lt;/portlet-mode&gt;
+            &lt;portlet-mode&gt;HELP&lt;/portlet-mode&gt;
+        &lt;/supports&gt;
+
+        &lt;portlet-info&gt;
+            &lt;title&gt;GuessNumber Portlet&lt;/title&gt;
+            &lt;short-title&gt;guessNumber&lt;/short-title&gt;
+        &lt;/portlet-info&gt;
+&lt;/portlet&gt;
+</pre>
+</div>
+</p>
+</div>
+
+      </div>
+    </div>
+    <div class="clear">
+      <hr/>
+    </div>
+    <div id="footer">
+      <div class="xright">&#169;  
+          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">&#169;  
+          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">&#169;  
+          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">&amp; </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 &amp; 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 &amp; 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">&#169;  
+          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">&#169;  
+          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>        
+  &lt;init-param&gt;
+      &lt;name&gt;StartPage&lt;/name&gt;
+      &lt;value&gt;hosts/index.php&lt;/value&gt;
+    &lt;/init-param&gt;
+</pre>
+</div>
+</div>
+
+      </div>
+    </div>
+    <div class="clear">
+      <hr/>
+    </div>
+    <div id="footer">
+      <div class="xright">&#169;  
+          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 &quot;HelloWorldPortletFilter&quot; as the portlet filter, portlet.xml is: 
+        </p>
+<p><div class="source"><pre>
+&lt;portlet-app id=&quot;helloworld&quot; version=&quot;1.0&quot;&gt;
+  &lt;portlet id=&quot;FilteredHelloWorld&quot;&gt;
+    &lt;portlet-name&gt;FilteredHelloWorld&lt;/portlet-name&gt;
+    &lt;display-name&gt;Filtered Hello World&lt;/display-name&gt;
+    &lt;description&gt;HelloWorld is a filtered portlet for testing&lt;/description&gt;
+    &lt;portlet-class&gt;org.apache.portals.bridges.portletfilter.FilterPortlet&lt;/portlet-class&gt;
+    &lt;init-param&gt;
+      &lt;name&gt;portlet-class&lt;/name&gt;
+      &lt;value&gt;org.apache.portals.bridges.helloworld.HelloWorldPortlet&lt;/value&gt;
+    &lt;/init-param&gt;
+    &lt;init-param&gt;
+      &lt;name&gt;portlet-filters&lt;/name&gt;
+      &lt;value&gt;org.apache.portals.bridges.helloworld.filter.HelloWorldPortletFilter&lt;/value&gt;
+    &lt;/init-param&gt;
+    &lt;expiration-cache&gt;-1&lt;/expiration-cache&gt;
+    &lt;supports&gt;
+      &lt;mime-type&gt;text/html&lt;/mime-type&gt;
+      &lt;portlet-mode&gt;VIEW&lt;/portlet-mode&gt;
+    &lt;/supports&gt;
+    &lt;supported-locale&gt;en&lt;/supported-locale&gt;
+    &lt;supported-locale&gt;ja&lt;/supported-locale&gt;
+    &lt;resource-bundle&gt;org.apache.portals.bridges.helloworld.resources.HelloWorldResources&lt;/resource-bundle&gt;
+    &lt;portlet-info&gt;
+      &lt;title&gt;Filtered Hello World&lt;/title&gt;
+      &lt;short-title&gt;This is a filtered portlet for testing&lt;/short-title&gt;
+      &lt;keywords&gt;Hello,Test,PortletFilter&lt;/keywords&gt;
+    &lt;/portlet-info&gt;
+  &lt;/portlet&gt;
+&lt;/portlet-app&gt;
+</pre>
+</div>
+</p>
+</div>
+</div>
+
+      </div>
+    </div>
+    <div class="clear">
+      <hr/>
+    </div>
+    <div id="footer">
+      <div class="xright">&#169;  
+          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 &quot;Hello, World!&quot; 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 = &quot;&lt;H1&gt;Hello, Groovy!&lt;/H1&gt;&quot;;
+        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 &lt; javax.portlet.GenericPortlet
+    
+    def doView(request, response)
+        greeting = &quot;&lt;H1&gt;Hello, JRuby!&lt;/H1&gt;&quot;
+        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 = &quot;&lt;H1&gt;Hello, Jython!&lt;/H1&gt;&quot;
+        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 = &quot;&lt;H1&gt;Hello, BeanShell!&lt;/H1&gt;&quot;;
+        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 = &quot;&lt;H1&gt;Hello, Rhino JavaScript!&lt;/H1&gt;&quot;;
+            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>
+&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+&lt;portlet-app id=&quot;velocitysimplest&quot; version=&quot;1.0&quot;&gt;
+  
+  &lt;portlet&gt;
+    &lt;portlet-name&gt;HelloGroovy&lt;/portlet-name&gt;
+    &lt;display-name&gt;Hello Groovy&lt;/display-name&gt;
+    &lt;portlet-class&gt;org.apache.portals.bridges.script.ScriptPortlet&lt;/portlet-class&gt;
+   
+    &lt;!-- 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. --&gt;
+    &lt;init-param&gt;
+      &lt;name&gt;engine&lt;/name&gt;
+      &lt;!-- 
+        Note: You can set other script engine which support JSR-223 ScriptEngine
+        such as 'groovy', 'jruby', 'jython'.
+      --&gt; 
+      &lt;value&gt;groovy&lt;/value&gt;
+    &lt;/init-param&gt;
+   
+    &lt;!-- 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. --&gt;
+    &lt;init-param&gt;
+      &lt;name&gt;eval-key&lt;/name&gt;
+      &lt;value&gt;value&lt;/value&gt;
+    &lt;/init-param&gt;
+   
+    &lt;!-- Required init parameter for script source path --&gt;
+    &lt;init-param&gt;
+      &lt;name&gt;source&lt;/name&gt;
+      &lt;!--
+        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.
+      --&gt;
+      &lt;!--
+        &lt;value&gt;/WEB-INF/groovy/HelloGroovy.groovy&lt;/value&gt;
+        &lt;value&gt;file:/C:/Program Files/Tomcat/webapps/demo/WEB-INF/groovy/HelloGroovy.groovy&lt;/value&gt;
+        &lt;value&gt;classpath:org/apache/portals/bridges/script/HelloGroovy.groovy&lt;/value&gt;
+      --&gt;
+      &lt;value&gt;classpath:org/apache/portals/bridges/script/HelloGroovy.groovy&lt;/value&gt;
+    &lt;/init-param&gt;
+   
+    &lt;!-- Optional init parameter for script file content encoding. The default value is 'UTF-8'. --&gt;
+    &lt;init-param&gt;
+      &lt;name&gt;encoding&lt;/name&gt;
+      &lt;value&gt;UTF-8&lt;/value&gt;
+    &lt;/init-param&gt;
+   
+    &lt;!-- 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. --&gt;
+    &lt;init-param&gt;
+      &lt;name&gt;auto-refresh&lt;/name&gt;
+      &lt;value&gt;true&lt;/value&gt;
+    &lt;/init-param&gt;
+   
+    &lt;!-- 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). --&gt;
+    &lt;init-param&gt;
+      &lt;name&gt;refresh-delay&lt;/name&gt;
+      &lt;value&gt;60000&lt;/value&gt;
+    &lt;/init-param&gt;
+    
+    &lt;!-- Optional init parameter for script preferences validator path --&gt;
+    &lt;init-param&gt;
+      &lt;name&gt;validator&lt;/name&gt;
+      &lt;!--
+       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.
+      --&gt;
+      &lt;!--
+       &lt;value&gt;/WEB-INF/groovy/HelloGroovyPrefsValidator.groovy&lt;/value&gt;
+       &lt;value&gt;file:/C:/Program Files/Tomcat/webapps/demo/WEB-INF/groovy/HelloGroovyPrefsValidator.groovy&lt;/value&gt;
+       &lt;value&gt;classpath:org/apache/portals/bridges/script/HelloGroovyPrefsValidator.groovy&lt;/value&gt;
+      --&gt;
+      &lt;value&gt;classpath:org/apache/portals/bridges/script/HelloGroovyPrefsValidator.groovy&lt;/value&gt;
+    &lt;/init-param&gt;
+   
+    &lt;!-- The followings are not special for ScriptPortlet, but normal configurations for a portlet. --&gt;
+    &lt;supports&gt;
+      &lt;mime-type&gt;text/html&lt;/mime-type&gt;
+      &lt;portlet-mode&gt;VIEW&lt;/portlet-mode&gt;
+      &lt;portlet-mode&gt;EDIT&lt;/portlet-mode&gt;
+      &lt;portlet-mode&gt;HELP&lt;/portlet-mode&gt;
+    &lt;/supports&gt;
+    &lt;supported-locale&gt;en&lt;/supported-locale&gt;
+    &lt;portlet-info&gt;
+      &lt;title&gt;Hello Groovy&lt;/title&gt;
+      &lt;short-title&gt;Hello Groovy&lt;/short-title&gt;
+      &lt;keywords&gt;demo,groovy&lt;/keywords&gt;
+    &lt;/portlet-info&gt;
+    &lt;portlet-preferences&gt;
+      &lt;preference&gt;
+        &lt;name&gt;message&lt;/name&gt;
+        &lt;value&gt;Hello, Groovy!&lt;/value&gt;
+      &lt;/preference&gt;
+      &lt;preferences-validator&gt;org.apache.portals.bridges.script.ScriptPortletPreferencesValidator&lt;/preferences-validator&gt;
+    &lt;/portlet-preferences&gt;
+   
+  &lt;/portlet&gt;
+ 
+&lt;/portlet-app&gt;
+          </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>
+&lt;dependency&gt;
+  &lt;groupId&gt;org.apache.portals.bridges&lt;/groupId&gt;
+  &lt;artifactId&gt;portals-bridges-script-dependencies-groovy&lt;/artifactId&gt;
+  &lt;version&gt;2.0&lt;/version&gt;
+  &lt;type&gt;pom&lt;/type&gt;
+&lt;/dependency&gt;
+        </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>
+&lt;dependency&gt;
+  &lt;groupId&gt;org.apache.portals.bridges&lt;/groupId&gt;
+  &lt;artifactId&gt;portals-bridges-script-dependencies-jruby&lt;/artifactId&gt;
+  &lt;version&gt;2.0&lt;/version&gt;
+  &lt;type&gt;pom&lt;/type&gt;
+&lt;/dependency&gt;
+        </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>
+&lt;dependency&gt;
+  &lt;groupId&gt;org.apache.portals.bridges&lt;/groupId&gt;
+  &lt;artifactId&gt;portals-bridges-script-dependencies-jython&lt;/artifactId&gt;
+  &lt;version&gt;2.0&lt;/version&gt;
+  &lt;type&gt;pom&lt;/type&gt;
+&lt;/dependency&gt;
+        </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>
+&lt;dependency&gt;
+  &lt;groupId&gt;org.apache.portals.bridges&lt;/groupId&gt;
+  &lt;artifactId&gt;portals-bridges-script-dependencies-beanshell&lt;/artifactId&gt;
+  &lt;version&gt;2.0&lt;/version&gt;
+  &lt;type&gt;pom&lt;/type&gt;
+&lt;/dependency&gt;
+        </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>
+&lt;dependency&gt;
+  &lt;groupId&gt;org.apache.portals.bridges&lt;/groupId&gt;
+  &lt;artifactId&gt;portals-bridges-script-dependencies-rhino&lt;/artifactId&gt;
+  &lt;version&gt;2.0&lt;/version&gt;
+  &lt;type&gt;pom&lt;/type&gt;
+&lt;/dependency&gt;
+        </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">&#169;  
+          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 = *