Author: woonsan
Date: Tue May 31 02:19:06 2022
New Revision: 1901429

URL: http://svn.apache.org/viewvc?rev=1901429&view=rev
Log:
PORTALS-28: publish site updates by PB dash 114

Added:
    portals/site-live/bridges/dependency-convergence.html
    portals/site-live/bridges/dependency-info.html
    portals/site-live/bridges/plugins.html
Modified:
    portals/site-live/bridges/bridges-common/index.html
    portals/site-live/bridges/bridges-frameworks/index.html
    portals/site-live/bridges/bridges-groovy/headersupport.html
    portals/site-live/bridges/bridges-groovy/index.html
    portals/site-live/bridges/bridges-groovy/prefvalidate.html
    portals/site-live/bridges/bridges-jsf/guide.html
    portals/site-live/bridges/bridges-jsf/index.html
    portals/site-live/bridges/bridges-jsf/myfaces-demo.html
    portals/site-live/bridges/bridges-perl/index.html
    portals/site-live/bridges/bridges-php/demo.html
    portals/site-live/bridges/bridges-php/getting-started.html
    portals/site-live/bridges/bridges-php/index.html
    portals/site-live/bridges/bridges-php/portlets.html
    portals/site-live/bridges/bridges-portletfilter/index.html
    portals/site-live/bridges/bridges-script/index.html
    portals/site-live/bridges/bridges-struts/features.html
    portals/site-live/bridges/bridges-struts/index.html
    portals/site-live/bridges/bridges-velocity/index.html
    portals/site-live/bridges/css/maven-base.css
    portals/site-live/bridges/css/print.css
    portals/site-live/bridges/css/site.css
    portals/site-live/bridges/download.html
    portals/site-live/bridges/index.html
    portals/site-live/bridges/issue-tracking.html
    portals/site-live/bridges/license.html
    portals/site-live/bridges/mail-lists.html
    portals/site-live/bridges/news.html
    portals/site-live/bridges/plugin-management.html
    portals/site-live/bridges/project-info.html
    portals/site-live/bridges/project-summary.html
    portals/site-live/bridges/release-notes-1.0.1.html
    portals/site-live/bridges/release-notes-1.0.3.html
    portals/site-live/bridges/release-notes-1.0.4.html
    portals/site-live/bridges/release-notes.html
    portals/site-live/bridges/team-list.html

Modified: portals/site-live/bridges/bridges-common/index.html
URL: 
http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-common/index.html?rev=1901429&r1=1901428&r2=1901429&view=diff
==============================================================================
--- portals/site-live/bridges/bridges-common/index.html (original)
+++ portals/site-live/bridges/bridges-common/index.html Tue May 31 02:19:06 2022
@@ -1,5 +1,5 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
-<!-- Generated by Apache Maven Doxia Site Renderer 1.4 at 1 May 2015 -->
+<!-- Generated by Apache Maven Doxia Site Renderer 1.4 at 26 May 2022 -->
 <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
@@ -11,7 +11,7 @@
       @import url("../css/site.css");
     </style>
     <link rel="stylesheet" href="../css/print.css" type="text/css" 
media="print" />
-    <meta name="Date-Revision-yyyymmdd" content="20150501" />
+    <meta name="Date-Revision-yyyymmdd" content="20220526" />
     <meta http-equiv="Content-Language" content="en" />
         
         </head>
@@ -31,7 +31,7 @@
             
                     
                 <div class="xleft">
-        <span id="publishDate">Last Published: 1 May 2015</span>
+        <span id="publishDate">Last Published: 26 May 2022</span>
                   &nbsp;| <span id="projectVersion">Version: 1.0</span>
                       </div>
             <div class="xright">                    <a 
href="http://portals.apache.org/"; class="externalLink" target="_nw" 
title="Portals">Portals</a>
@@ -129,90 +129,90 @@
     </div>
     <div id="bodyColumn">
       <div id="contentBox">
-        <!-- Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements.  See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License. -->
-  
-    <div class="section">
-<h2>About Apache Portals Bridges Common<a 
name="About_Apache_Portals_Bridges_Common"></a></h2>
-      
-<p>
-      The Portals Bridges Common library provides a common area for utilities 
and support code for developing bridges. 
-      The latest release of Portals Bridges Common is <a class="externalLink" 
href="http://www.apache.org/dyn/closer.cgi/portals/bridges/sources/portals-bridges-common-2.1-source-release.zip";>version
 2.1</a>
-      Some of the functionality provided includes:
-      </p> 
-      
-<table border="0" class="bodyTable">
-      
-<tr class="a">
-       
-<th>Class</th>
-       
-<th>Description</th>
-      </tr>
-      
-<tr class="b">
-       
-<td>org.apache.portals.bridges.common.GenericServletPortlet</td>
-       
-<td>A generic servlet dispatching portlet calls a servlet or JSP page, as 
defined by a Page preference, for the Action, Custom, Edit, Help, and View 
operations.
-        This allow the use of existing servlets or JSPs in the portlet.  Since 
this is a very thin class, it is up to the servlet, or JSP, to return properly 
formated content.
-       </td>
-      </tr>
-      
-<tr class="a">
-       
-<td>org.apache.portals.messaging.PortletMessaging</td>
-       
-<td>Portlet API 1.0 implementation of Porlet Messages as an abstraction and a 
place holder for inter-portlet communication, should be replaced with Portlet 
2.0 events in your code. (This code is still functional under Portlet 2.0 
spec)</td>
-      </tr>
-      
-<tr class="b">
-       
-<td>org.apache.portals.bridges.util.PreferencesHelper</td>
-       
-<td>Helper function for mapping request parameters to the Action Request 
internal preferences map</td>
-      </tr>
-      
-<tr class="a">
-       
-<td>org.apache.portals.bridges.util.PortletWindowUtils</td>
-       
-<td>Helper functions for working with portlet windows and decoding and 
encoding window ids. Makes use of the PortletSession to determine the window id 
as
-        specified by the Portlet Specification 1.0, PLT.15.3,
-         as well as stores the determined value under the {@link 
#PORTLET_WINDOW_ID} in the portlet scope session.
-       </td>
-      </tr>
-      
-<tr class="b">
-       
-<td>org.apache.portals.bridges.util.ServletPortletSessionProxy</td>
-       
-<td>Proxy for a Servlet HttpSession to attach to a PortletSession, providing 
only access to PORTLET_SCOPE session attributes and hiding the 
APPLICATION_SCOPE attributes from the Servlet.
-               This Proxy can be used to isolate two instances of the same 
Portlet dispatching to Servlets so they don't overwrite or read each others 
session attributes.
-       </td>
-      </tr>
-      
-<tr class="a">
-       
-<td>org.apache.portals.bridges.common.ServletContextProvider</td>
-       
-<td>Interface for general communication of a context to servlet bridge 
implementations such as the Struts bridge</td>
-      </tr>
-      </table>
-    </div>
-  
+        <!-- Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License. -->
+  
+    <div class="section">
+<h2>About Apache Portals Bridges Common<a 
name="About_Apache_Portals_Bridges_Common"></a></h2>
+      
+<p>
+      The Portals Bridges Common library provides a common area for utilities 
and support code for developing bridges. 
+      The latest release of Portals Bridges Common is <a class="externalLink" 
href="http://www.apache.org/dyn/closer.cgi/portals/bridges/sources/portals-bridges-common-2.1-source-release.zip";>version
 2.1</a>
+      Some of the functionality provided includes:
+      </p> 
+      
+<table border="0" class="bodyTable">
+      
+<tr class="a">
+       
+<th>Class</th>
+       
+<th>Description</th>
+      </tr>
+      
+<tr class="b">
+       
+<td>org.apache.portals.bridges.common.GenericServletPortlet</td>
+       
+<td>A generic servlet dispatching portlet calls a servlet or JSP page, as 
defined by a Page preference, for the Action, Custom, Edit, Help, and View 
operations.
+        This allow the use of existing servlets or JSPs in the portlet.  Since 
this is a very thin class, it is up to the servlet, or JSP, to return properly 
formated content.
+       </td>
+      </tr>
+      
+<tr class="a">
+       
+<td>org.apache.portals.messaging.PortletMessaging</td>
+       
+<td>Portlet API 1.0 implementation of Porlet Messages as an abstraction and a 
place holder for inter-portlet communication, should be replaced with Portlet 
2.0 events in your code. (This code is still functional under Portlet 2.0 
spec)</td>
+      </tr>
+      
+<tr class="b">
+       
+<td>org.apache.portals.bridges.util.PreferencesHelper</td>
+       
+<td>Helper function for mapping request parameters to the Action Request 
internal preferences map</td>
+      </tr>
+      
+<tr class="a">
+       
+<td>org.apache.portals.bridges.util.PortletWindowUtils</td>
+       
+<td>Helper functions for working with portlet windows and decoding and 
encoding window ids. Makes use of the PortletSession to determine the window id 
as
+        specified by the Portlet Specification 1.0, PLT.15.3,
+         as well as stores the determined value under the {@link 
#PORTLET_WINDOW_ID} in the portlet scope session.
+       </td>
+      </tr>
+      
+<tr class="b">
+       
+<td>org.apache.portals.bridges.util.ServletPortletSessionProxy</td>
+       
+<td>Proxy for a Servlet HttpSession to attach to a PortletSession, providing 
only access to PORTLET_SCOPE session attributes and hiding the 
APPLICATION_SCOPE attributes from the Servlet.
+               This Proxy can be used to isolate two instances of the same 
Portlet dispatching to Servlets so they don't overwrite or read each others 
session attributes.
+       </td>
+      </tr>
+      
+<tr class="a">
+       
+<td>org.apache.portals.bridges.common.ServletContextProvider</td>
+       
+<td>Interface for general communication of a context to servlet bridge 
implementations such as the Struts bridge</td>
+      </tr>
+      </table>
+    </div>
+  
 
       </div>
     </div>
@@ -221,7 +221,7 @@ limitations under the License. -->
     </div>
     <div id="footer">
       <div class="xright">
-              Copyright &#169;                    2004-2015
+              Copyright &#169;                    2004-2022
                         <a href="http://www.apache.org/";>Apache Software 
Foundation</a>.
             All Rights Reserved.      
                     

Modified: portals/site-live/bridges/bridges-frameworks/index.html
URL: 
http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-frameworks/index.html?rev=1901429&r1=1901428&r2=1901429&view=diff
==============================================================================
--- portals/site-live/bridges/bridges-frameworks/index.html (original)
+++ portals/site-live/bridges/bridges-frameworks/index.html Tue May 31 02:19:06 
2022
@@ -1,234 +1,171 @@
-<!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 Bridges 
Frameworks</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">
-                    <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">
-        <div class="section"><h2><a 
name="About_Apache_Portals_Bridges_Frameworks"></a>About Apache Portals Bridges 
Frameworks</h2>
-<p>Apache Portals Bridges Frameworks</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>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+<!-- Generated by Apache Maven Doxia Site Renderer 1.4 at 26 May 2022 -->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <title>Apache Portals Bridges - 
+    About Apache Portals Bridges Frameworks</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 name="Date-Revision-yyyymmdd" content="20220526" />
+    <meta http-equiv="Content-Language" content="en" />
+        
+        </head>
+  <body class="composite">
+    <div id="banner">
+                        <a href="http://portals.apache.org/"; id="bannerLeft">
+                                                <img 
src="../images/apache-portals.gif" alt="Apache Software Foundation" />
+                </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">
+        <span id="publishDate">Last Published: 26 May 2022</span>
+                  &nbsp;| <span id="projectVersion">Version: 1.0</span>
+                      </div>
+            <div class="xright">                    <a 
href="http://portals.apache.org/"; class="externalLink" target="_nw" 
title="Portals">Portals</a>
+            |
+                        <a href="http://portals.apache.org/applications"; 
class="externalLink" target="_nw" title="Applications">Applications</a>
+            |
+                        <a href="http://portals.apache.org/jetspeed-2"; 
class="externalLink" target="_nw" title="Jetspeed-2">Jetspeed-2</a>
+            |
+                        <a href="http://www.jcp.org/en/jsr/detail?id=168"; 
class="externalLink" target="_nw" title="JSR-168">JSR-168</a>
+            |
+                        <a href="http://www.jcp.org/en/jsr/detail?id=286"; 
class="externalLink" target="_nw" title="JSR-286">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" title="Overview">Overview</a>
+            </li>
+                  <li class="none">
+                          <a href="../news.html" title="News and Status">News 
and Status</a>
+            </li>
+          </ul>
+                       <h5>Current Portals Bridges</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../bridges-common/index.html" title="Common 
Utilities and Interfaces">Common Utilities and Interfaces</a>
+            </li>
+                                                                    <li 
class="collapsed">
+                          <a href="../bridges-struts/index.html" title="Struts 
Bridge">Struts Bridge</a>
+                  </li>
+                  <li class="none">
+                          <a href="../bridges-velocity/index.html" 
title="Velocity Bridge">Velocity Bridge</a>
+            </li>
+                  <li class="none">
+                          <a href="../bridges-script/index.html" title="Script 
Bridge">Script Bridge</a>
+            </li>
+                                                                               
       <li class="collapsed">
+                          <a href="../bridges-groovy/index.html" title="Groovy 
Bridge">Groovy Bridge</a>
+                  </li>
+          </ul>
+                       <h5>Archived Portals Bridges</h5>
+                  <ul>
+                                                                               
       <li class="collapsed">
+                          <a href="../bridges-jsf/index.html" title="JSF 
Bridge">JSF Bridge</a>
+                  </li>
+                                                                               
                         <li class="collapsed">
+                          <a href="../bridges-php/index.html" title="PHP 
Bridge">PHP Bridge</a>
+                  </li>
+                  <li class="none">
+                          <a href="../bridges-perl/index.html" title="Perl 
Bridge">Perl Bridge</a>
+            </li>
+                  <li class="none">
+                          <a href="../bridges-portletfilter/index.html" 
title="Portlet Filter">Portlet Filter</a>
+            </li>
+          </ul>
+                       <h5>Get Portals Bridges</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../download.html" 
title="Download">Download</a>
+            </li>
+                  <li class="none">
+                          <a href="../release-notes.html" title="Release 
Notes">Release Notes</a>
+            </li>
+          </ul>
+                       <h5>Support</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../team-list.html" title="Project 
Team">Project Team</a>
+            </li>
+                  <li class="none">
+                          <a href="../license.html" title="Project 
License">Project License</a>
+            </li>
+                  <li class="none">
+                          <a href="../mail-lists.html" title="Mailing 
List">Mailing List</a>
+            </li>
+                  <li class="none">
+                          <a href="../issue-tracking.html" title="Issue 
Tracking">Issue Tracking</a>
+            </li>
+          </ul>
+                             <a href="http://maven.apache.org/"; title="Built 
by Maven" class="poweredBy">
+        <img class="poweredBy" alt="Built by Maven" 
src="../images/logos/maven-feather.png" />
+      </a>
+                   
+                    
+            </div>
+    </div>
+    <div id="bodyColumn">
+      <div id="contentBox">
+        <!-- Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License. -->
+  
+    <div class="section">
+<h2>About Apache Portals Bridges Frameworks<a 
name="About_Apache_Portals_Bridges_Frameworks"></a></h2>
+      
+<p>Apache Portals Bridges Frameworks</p>
+    </div>
+  
+
+      </div>
+    </div>
+    <div class="clear">
+      <hr/>
+    </div>
+    <div id="footer">
+      <div class="xright">
+              Copyright &#169;                    2004-2022
+                        <a href="http://www.apache.org/";>Apache Software 
Foundation</a>.
+            All Rights Reserved.      
+                    
+                  </div>
+      <div class="clear">
+        <hr/>
+      </div>
+    </div>
+  </body>
+</html>

Modified: portals/site-live/bridges/bridges-groovy/headersupport.html
URL: 
http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-groovy/headersupport.html?rev=1901429&r1=1901428&r2=1901429&view=diff
==============================================================================
--- portals/site-live/bridges/bridges-groovy/headersupport.html (original)
+++ portals/site-live/bridges/bridges-groovy/headersupport.html Tue May 31 
02:19:06 2022
@@ -1,340 +1,283 @@
-<!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 Header Phase Support</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>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+<!-- Generated by Apache Maven Doxia Site Renderer 1.4 at 26 May 2022 -->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <title>Apache Portals Bridges - 
+               Jetspeed Header Phase Support</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 name="Date-Revision-yyyymmdd" content="20220526" />
+    <meta http-equiv="Content-Language" content="en" />
+        
+        </head>
+  <body class="composite">
+    <div id="banner">
+                        <a href="http://portals.apache.org/"; id="bannerLeft">
+                                                <img 
src="../images/apache-portals.gif" alt="Apache Software Foundation" />
+                </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">
+        <span id="publishDate">Last Published: 26 May 2022</span>
+                  &nbsp;| <span id="projectVersion">Version: 1.0</span>
+                      </div>
+            <div class="xright">                    <a 
href="http://portals.apache.org/"; class="externalLink" target="_nw" 
title="Portals">Portals</a>
+            |
+                        <a href="http://portals.apache.org/applications"; 
class="externalLink" target="_nw" title="Applications">Applications</a>
+            |
+                        <a href="http://portals.apache.org/jetspeed-2"; 
class="externalLink" target="_nw" title="Jetspeed-2">Jetspeed-2</a>
+            |
+                        <a href="http://www.jcp.org/en/jsr/detail?id=168"; 
class="externalLink" target="_nw" title="JSR-168">JSR-168</a>
+            |
+                        <a href="http://www.jcp.org/en/jsr/detail?id=286"; 
class="externalLink" target="_nw" title="JSR-286">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" title="Overview">Overview</a>
+            </li>
+                  <li class="none">
+                          <a href="../news.html" title="News and Status">News 
and Status</a>
+            </li>
+          </ul>
+                       <h5>Current Portals Bridges</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../bridges-common/index.html" title="Common 
Utilities and Interfaces">Common Utilities and Interfaces</a>
+            </li>
+                                                                    <li 
class="collapsed">
+                          <a href="../bridges-struts/index.html" title="Struts 
Bridge">Struts Bridge</a>
+                  </li>
+                  <li class="none">
+                          <a href="../bridges-velocity/index.html" 
title="Velocity Bridge">Velocity Bridge</a>
+            </li>
+                  <li class="none">
+                          <a href="../bridges-script/index.html" title="Script 
Bridge">Script Bridge</a>
+            </li>
+                                                                               
                 <li class="expanded">
+                          <a href="../bridges-groovy/index.html" title="Groovy 
Bridge">Groovy Bridge</a>
+                    <ul>
+                      <li class="none">
+                          <a href="../bridges-groovy/prefvalidate.html" 
title="Groovy PreferencesValidator Guide">Groovy PreferencesValidator Guide</a>
+            </li>
+                      <li class="none">
+            <strong>Jetspeed HeaderPhase Support Guide</strong>
+          </li>
+              </ul>
+        </li>
+          </ul>
+                       <h5>Archived Portals Bridges</h5>
+                  <ul>
+                                                                               
       <li class="collapsed">
+                          <a href="../bridges-jsf/index.html" title="JSF 
Bridge">JSF Bridge</a>
+                  </li>
+                                                                               
                         <li class="collapsed">
+                          <a href="../bridges-php/index.html" title="PHP 
Bridge">PHP Bridge</a>
+                  </li>
+                  <li class="none">
+                          <a href="../bridges-perl/index.html" title="Perl 
Bridge">Perl Bridge</a>
+            </li>
+                  <li class="none">
+                          <a href="../bridges-portletfilter/index.html" 
title="Portlet Filter">Portlet Filter</a>
+            </li>
+          </ul>
+                       <h5>Get Portals Bridges</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../download.html" 
title="Download">Download</a>
+            </li>
+                  <li class="none">
+                          <a href="../release-notes.html" title="Release 
Notes">Release Notes</a>
+            </li>
+          </ul>
+                       <h5>Support</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../team-list.html" title="Project 
Team">Project Team</a>
+            </li>
+                  <li class="none">
+                          <a href="../license.html" title="Project 
License">Project License</a>
+            </li>
+                  <li class="none">
+                          <a href="../mail-lists.html" title="Mailing 
List">Mailing List</a>
+            </li>
+                  <li class="none">
+                          <a href="../issue-tracking.html" title="Issue 
Tracking">Issue Tracking</a>
+            </li>
+          </ul>
+                             <a href="http://maven.apache.org/"; title="Built 
by Maven" class="poweredBy">
+        <img class="poweredBy" alt="Built by Maven" 
src="../images/logos/maven-feather.png" />
+      </a>
+                   
+                    
+            </div>
+    </div>
+    <div id="bodyColumn">
+      <div id="contentBox">
+        <!-- Licensed to the Apache Software Foundation (ASF) under one or more
+       contributor license agreements.  See the NOTICE file distributed with
+       this work for additional information regarding copyright ownership.
+       The ASF licenses this file to You under the Apache License, Version 2.0
+       (the "License"); you may not use this file except in compliance with
+       the License.  You may obtain a copy of the License at
+       
+       http://www.apache.org/licenses/LICENSE-2.0
+       
+       Unless required by applicable law or agreed to in writing, software
+       distributed under the License is distributed on an "AS IS" BASIS,
+       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+       See the License for the specific language governing permissions and
+       limitations under the License. -->
+       
+               <div class="section">
+<h2>Jetspeed Groovy Portlet with Header Phase Support Guide<a 
name="Jetspeed_Groovy_Portlet_with_Header_Phase_Support_Guide"></a></h2>
             
-  
-
-  
-    
-  
-  
-    
-  </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>
-              
-                
-              
-      
+<p>Jetspeed-2 provides an interface for a portlet to be able to support the 
pre-286 header phase. If you want your portlet to support this, just use 
GroovyPortletHeaderPhaseSupport class instead of GroovyPortlet, and implement 
SupportsHeaderPhase interface.</p>
             
             
-              
-            <li class="expanded">
-                    <a href="../bridges-groovy/index.html">Groovy Bridge</a>
-                  <ul>
-                  
-    <li class="none">
-                    <a href="../bridges-groovy/prefvalidate.html">Groovy 
PreferencesValidator Guide</a>
-          </li>
-                  
-    <li class="none">
-              <strong>Jetspeed HeaderPhase Support Guide</strong>
-        </li>
-              </ul>
-        </li>
-          </ul>
-              <h5>Archived Portals Bridges</h5>
-            <ul>
-              
+<div class="section">
+<h3>1. The Portlet Class supporting header phase<a 
name="a1._The_Portlet_Class_supporting_header_phase"></a></h3>
+                               
+<p>
+                               Create the file HelloGroovyHeaderSupport.groovy 
in a directory called
+                               groovy-simplest/WEB-INF/classes:
+                </p>
+<div class="source">
+<pre>
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletContext;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.PortletPreferences;
+import javax.portlet.ValidatorException;
+
+import org.apache.jetspeed.headerresource.HeaderResource;
+import org.apache.jetspeed.portlet.PortletHeaderRequest;
+import org.apache.jetspeed.portlet.PortletHeaderResponse;
+import org.apache.jetspeed.portlet.SupportsHeaderPhase;
+
+public class HelloGroovyHeaderSupport extends GenericPortlet implements 
SupportsHeaderPhase
+{
+    public void doHeader(PortletHeaderRequest request, PortletHeaderResponse 
response)
+    {
+        // use header resource component to ensure header logic is included 
only once
+        HeaderResource headerResource = response.getHeaderResource();
+        headerResource.dojoEnable();
+        
+        headerResource.dojoAddCoreLibraryRequire( &quot;dojo.lang.*&quot; );
+        headerResource.dojoAddCoreLibraryRequire( &quot;dojo.event.*&quot; );
+        headerResource.dojoAddCoreLibraryRequire( &quot;dojo.io.*&quot; );
+        headerResource.dojoAddCoreLibraryRequire( &quot;dojo.widget.*&quot; );
+        headerResource.dojoAddCoreLibraryRequire( 
&quot;dojo.widget.Button&quot; );
+     }
+    
+    public void doView(RenderRequest request, RenderResponse response)
+    {
+        response.setContentType(&quot;text/html&quot;);
+        
+        // Let's put a dojo widget button for simplicity here.
+        response.getWriter().println &quot;&quot;&quot;
+            &lt;button widgetId=&quot;helloGroovyButton&quot; 
dojoType=&quot;Button&quot; onclick=&quot;alert('Hello, Groovy');&quot;&gt;
+            Say Hello
+            &lt;/button&gt;
+        &quot;&quot;&quot;
+    }
+    
+}
+                </pre></div>
+                For simplicity, in the above example, the doView() method just 
writes a simple HTML fragment to show DOJO button widget.
                 
-              
-      
+            </div>
             
-      
-              
-        <li class="collapsed">
-                    <a href="../bridges-jsf/index.html">JSF Bridge</a>
-                </li>
-              
+<div class="section">
+<h3>2. The portlet.xml<a name="a2._The_portlet.xml"></a></h3>
+                       
+<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 id=&quot;HelloGroovyHeaderSupport&quot;&gt;
+    &lt;portlet-name&gt;HelloGroovyHeaderSupport&lt;/portlet-name&gt;
+    &lt;display-name&gt;Hello Groovy with Header Support Display 
Name&lt;/display-name&gt;
+     
&lt;portlet-class&gt;org.apache.portals.bridges.groovy.GroovyPortletHeaderPhaseSupport&lt;/portlet-class&gt;
+    &lt;init-param&gt;
+      &lt;name&gt;script-source&lt;/name&gt;
+      &lt;!-- Note: You can set script source in three ways.
+                 The first is to use relative path uri,
+                 the second is to use file: url,
+                 and the last is to classpath: uri --&gt;
+      &lt;!--
+      &lt;value&gt;/WEB-INF/groovy/HelloGroovy.groovy&lt;/value&gt;
+      &lt;value&gt;file:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/webapps/demo/WEB-INF/groovy/HelloGroovy.groovy&lt;/value&gt;
+      --&gt;
+      &lt;value&gt;classpath:HelloGroovyHeaderSupport.groovy&lt;/value&gt;
+    &lt;/init-param&gt;
+    &lt;!-- If auto-refresh is true, then a modification of script source 
applies instantly. --&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;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;portlet-info&gt;
+      &lt;title&gt;Hello Groovy with Header Support Title&lt;/title&gt;
+      &lt;short-title&gt;Hello Groovy with Header Support Short 
Title&lt;/short-title&gt;
+    &lt;/portlet-info&gt;
+  &lt;/portlet&gt;
+&lt;/portlet-app&gt;
+                </pre></div>
+                The &lt;portlet-class&gt; was replaced with 
'org.apache.portals.bridges.groovy.GroovyPortletHeaderPhaseSupport' instead of 
'org.apache.portals.bridges.groovy.GroovyPortlet' to support header phase.
                 
-              
-      
-            
-      
-            
-      
-              
-        <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="[email protected]"></authors><div class="section"><h2><a 
name="Jetspeed_Groovy_Portlet_with_Header_Phase_Support_Guide"></a>Jetspeed 
Groovy Portlet with Header Phase Support Guide</h2>
-<p>Jetspeed-2 provides an interface for a portlet to be able to support the 
pre-286 header phase. If you want your portlet to support this, just use 
GroovyPortletHeaderPhaseSupport class instead of GroovyPortlet, and implement 
SupportsHeaderPhase interface.</p>
-<div class="section"><h3><a 
name="a1._The_Portlet_Class_supporting_header_phase"></a>1. The Portlet Class 
supporting header phase</h3>
-<p>
-                               Create the file HelloGroovyHeaderSupport.groovy 
in a directory called
-                               groovy-simplest/WEB-INF/classes:
-                <div class="source"><pre>
-import javax.portlet.GenericPortlet;
-import javax.portlet.PortletContext;
-import javax.portlet.PortletRequestDispatcher;
-import javax.portlet.RenderRequest;
-import javax.portlet.RenderResponse;
-import javax.portlet.ActionRequest;
-import javax.portlet.ActionResponse;
-import javax.portlet.PortletPreferences;
-import javax.portlet.ValidatorException;
+            </div>
+               </div>
+       
 
-import org.apache.jetspeed.headerresource.HeaderResource;
-import org.apache.jetspeed.portlet.PortletHeaderRequest;
-import org.apache.jetspeed.portlet.PortletHeaderResponse;
-import org.apache.jetspeed.portlet.SupportsHeaderPhase;
-
-public class HelloGroovyHeaderSupport extends GenericPortlet implements 
SupportsHeaderPhase
-{
-    public void doHeader(PortletHeaderRequest request, PortletHeaderResponse 
response)
-    {
-        // use header resource component to ensure header logic is included 
only once
-        HeaderResource headerResource = response.getHeaderResource();
-        headerResource.dojoEnable();
-        
-        headerResource.dojoAddCoreLibraryRequire( &quot;dojo.lang.*&quot; );
-        headerResource.dojoAddCoreLibraryRequire( &quot;dojo.event.*&quot; );
-        headerResource.dojoAddCoreLibraryRequire( &quot;dojo.io.*&quot; );
-        headerResource.dojoAddCoreLibraryRequire( &quot;dojo.widget.*&quot; );
-        headerResource.dojoAddCoreLibraryRequire( 
&quot;dojo.widget.Button&quot; );
-     }
-    
-    public void doView(RenderRequest request, RenderResponse response)
-    {
-        response.setContentType(&quot;text/html&quot;);
-        
-        // Let's put a dojo widget button for simplicity here.
-        response.getWriter().println &quot;&quot;&quot;
-            &lt;button widgetId=&quot;helloGroovyButton&quot; 
dojoType=&quot;Button&quot; onclick=&quot;alert('Hello, Groovy');&quot;&gt;
-            Say Hello
-            &lt;/button&gt;
-        &quot;&quot;&quot;
-    }
-    
-}
-                </pre>
-</div>
-
-                For simplicity, in the above example, the doView() method just 
writes a simple HTML fragment to show DOJO button widget.
-                </p>
-</div>
-<div class="section"><h3><a name="a2._The_portlet.xml"></a>2. The 
portlet.xml</h3>
-<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 id=&quot;HelloGroovyHeaderSupport&quot;&gt;
-    &lt;portlet-name&gt;HelloGroovyHeaderSupport&lt;/portlet-name&gt;
-    &lt;display-name&gt;Hello Groovy with Header Support Display 
Name&lt;/display-name&gt;
-     
&lt;portlet-class&gt;org.apache.portals.bridges.groovy.GroovyPortletHeaderPhaseSupport&lt;/portlet-class&gt;
-    &lt;init-param&gt;
-      &lt;name&gt;script-source&lt;/name&gt;
-      &lt;!-- Note: You can set script source in three ways.
-                 The first is to use relative path uri,
-                 the second is to use file: url,
-                 and the last is to classpath: uri --&gt;
-      &lt;!--
-      &lt;value&gt;/WEB-INF/groovy/HelloGroovy.groovy&lt;/value&gt;
-      &lt;value&gt;file:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/webapps/demo/WEB-INF/groovy/HelloGroovy.groovy&lt;/value&gt;
-      --&gt;
-      &lt;value&gt;classpath:HelloGroovyHeaderSupport.groovy&lt;/value&gt;
-    &lt;/init-param&gt;
-    &lt;!-- If auto-refresh is true, then a modification of script source 
applies instantly. --&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;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;portlet-info&gt;
-      &lt;title&gt;Hello Groovy with Header Support Title&lt;/title&gt;
-      &lt;short-title&gt;Hello Groovy with Header Support Short 
Title&lt;/short-title&gt;
-    &lt;/portlet-info&gt;
-  &lt;/portlet&gt;
-&lt;/portlet-app&gt;
-                </pre>
-</div>
-
-                The &lt;portlet-class&gt; was replaced with 
'org.apache.portals.bridges.groovy.GroovyPortletHeaderPhaseSupport' instead of 
'org.apache.portals.bridges.groovy.GroovyPortlet' to support header phase.
-                </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>
+      </div>
+    </div>
+    <div class="clear">
+      <hr/>
+    </div>
+    <div id="footer">
+      <div class="xright">
+              Copyright &#169;                    2004-2022
+                        <a href="http://www.apache.org/";>Apache Software 
Foundation</a>.
+            All Rights Reserved.      
+                    
+                  </div>
+      <div class="clear">
+        <hr/>
+      </div>
+    </div>
+  </body>
+</html>

Modified: portals/site-live/bridges/bridges-groovy/index.html
URL: 
http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-groovy/index.html?rev=1901429&r1=1901428&r2=1901429&view=diff
==============================================================================
--- portals/site-live/bridges/bridges-groovy/index.html (original)
+++ portals/site-live/bridges/bridges-groovy/index.html Tue May 31 02:19:06 2022
@@ -1,475 +1,456 @@
-<!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 Groovy 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>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+<!-- Generated by Apache Maven Doxia Site Renderer 1.4 at 26 May 2022 -->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <title>Apache Portals Bridges - 
+               Jetspeed Groovy 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 name="Date-Revision-yyyymmdd" content="20220526" />
+    <meta http-equiv="Content-Language" content="en" />
+        
+        </head>
+  <body class="composite">
+    <div id="banner">
+                        <a href="http://portals.apache.org/"; id="bannerLeft">
+                                                <img 
src="../images/apache-portals.gif" alt="Apache Software Foundation" />
+                </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">
+        <span id="publishDate">Last Published: 26 May 2022</span>
+                  &nbsp;| <span id="projectVersion">Version: 1.0</span>
+                      </div>
+            <div class="xright">                    <a 
href="http://portals.apache.org/"; class="externalLink" target="_nw" 
title="Portals">Portals</a>
+            |
+                        <a href="http://portals.apache.org/applications"; 
class="externalLink" target="_nw" title="Applications">Applications</a>
+            |
+                        <a href="http://portals.apache.org/jetspeed-2"; 
class="externalLink" target="_nw" title="Jetspeed-2">Jetspeed-2</a>
+            |
+                        <a href="http://www.jcp.org/en/jsr/detail?id=168"; 
class="externalLink" target="_nw" title="JSR-168">JSR-168</a>
+            |
+                        <a href="http://www.jcp.org/en/jsr/detail?id=286"; 
class="externalLink" target="_nw" title="JSR-286">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" title="Overview">Overview</a>
+            </li>
+                  <li class="none">
+                          <a href="../news.html" title="News and Status">News 
and Status</a>
+            </li>
+          </ul>
+                       <h5>Current Portals Bridges</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../bridges-common/index.html" title="Common 
Utilities and Interfaces">Common Utilities and Interfaces</a>
+            </li>
+                                                                    <li 
class="collapsed">
+                          <a href="../bridges-struts/index.html" title="Struts 
Bridge">Struts Bridge</a>
+                  </li>
+                  <li class="none">
+                          <a href="../bridges-velocity/index.html" 
title="Velocity Bridge">Velocity Bridge</a>
+            </li>
+                  <li class="none">
+                          <a href="../bridges-script/index.html" title="Script 
Bridge">Script Bridge</a>
+            </li>
+                                                                               
           <li class="expanded">
+            <strong>Groovy Bridge</strong>
+                  <ul>
+                      <li class="none">
+                          <a href="../bridges-groovy/prefvalidate.html" 
title="Groovy PreferencesValidator Guide">Groovy PreferencesValidator Guide</a>
+            </li>
+                      <li class="none">
+                          <a href="../bridges-groovy/headersupport.html" 
title="Jetspeed HeaderPhase Support Guide">Jetspeed HeaderPhase Support 
Guide</a>
+            </li>
+              </ul>
+        </li>
+          </ul>
+                       <h5>Archived Portals Bridges</h5>
+                  <ul>
+                                                                               
       <li class="collapsed">
+                          <a href="../bridges-jsf/index.html" title="JSF 
Bridge">JSF Bridge</a>
+                  </li>
+                                                                               
                         <li class="collapsed">
+                          <a href="../bridges-php/index.html" title="PHP 
Bridge">PHP Bridge</a>
+                  </li>
+                  <li class="none">
+                          <a href="../bridges-perl/index.html" title="Perl 
Bridge">Perl Bridge</a>
+            </li>
+                  <li class="none">
+                          <a href="../bridges-portletfilter/index.html" 
title="Portlet Filter">Portlet Filter</a>
+            </li>
+          </ul>
+                       <h5>Get Portals Bridges</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../download.html" 
title="Download">Download</a>
+            </li>
+                  <li class="none">
+                          <a href="../release-notes.html" title="Release 
Notes">Release Notes</a>
+            </li>
+          </ul>
+                       <h5>Support</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../team-list.html" title="Project 
Team">Project Team</a>
+            </li>
+                  <li class="none">
+                          <a href="../license.html" title="Project 
License">Project License</a>
+            </li>
+                  <li class="none">
+                          <a href="../mail-lists.html" title="Mailing 
List">Mailing List</a>
+            </li>
+                  <li class="none">
+                          <a href="../issue-tracking.html" title="Issue 
Tracking">Issue Tracking</a>
+            </li>
+          </ul>
+                             <a href="http://maven.apache.org/"; title="Built 
by Maven" class="poweredBy">
+        <img class="poweredBy" alt="Built by Maven" 
src="../images/logos/maven-feather.png" />
+      </a>
+                   
+                    
+            </div>
+    </div>
+    <div id="bodyColumn">
+      <div id="contentBox">
+        <!-- Licensed to the Apache Software Foundation (ASF) under one or more
+       contributor license agreements.  See the NOTICE file distributed with
+       this work for additional information regarding copyright ownership.
+       The ASF licenses this file to You under the Apache License, Version 2.0
+       (the "License"); you may not use this file except in compliance with
+       the License.  You may obtain a copy of the License at
+       
+       http://www.apache.org/licenses/LICENSE-2.0
+       
+       Unless required by applicable law or agreed to in writing, software
+       distributed under the License is distributed on an "AS IS" BASIS,
+       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+       See the License for the specific language governing permissions and
+       limitations under the License. -->
+       
+               <div class="section">
+<h2>Jetspeed Groovy Portlet Guide<a 
name="Jetspeed_Groovy_Portlet_Guide"></a></h2>
+                       
+<p>
+                               This guide provides a tutorial for creating a 
Groovy portlet 
+                with full-featured portlet modes.
+                       </p>
+                       
+<div class="section">
+<h3>1. The Portlet Class<a name="a1._The_Portlet_Class"></a></h3>
+                               
+<p>
+                               Create the file HelloGroovy.groovy in a 
directory called
+                               groovy-simplest/WEB-INF/classes:
+                               </p>
+<div class="source">
+<pre>
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletContext;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.PortletPreferences;
+
+public class HelloGroovy extends GenericPortlet
+{
+    public void doView(RenderRequest request, RenderResponse response)
+    {
+        PortletContext context = getPortletContext();
+        PortletRequestDispatcher rd = 
+            
context.getRequestDispatcher(&quot;/WEB-INF/view/hello-groovy-view.jsp&quot;);
+        rd.include(request, response);
+    }
+    
+    public void doEdit(RenderRequest request, RenderResponse response)
+    {
+        PortletContext context = getPortletContext();
+        PortletRequestDispatcher rd = 
+            
context.getRequestDispatcher(&quot;/WEB-INF/view/hello-groovy-edit.jsp&quot;);
+        rd.include(request, response);
+    }
+
+    public void doHelp(RenderRequest request, RenderResponse response)
+    {
+        PortletContext context = getPortletContext();
+        PortletRequestDispatcher rd = 
+            
context.getRequestDispatcher(&quot;/WEB-INF/view/hello-groovy-help.html&quot;);
+        rd.include(request,response);
+    }
+    
+    public void processAction(ActionRequest request, ActionResponse response)
+    {
+        String message = request.getParameter(&quot;message&quot;);
+        
+        if (null != message &amp;&amp; !&quot;&quot;.equals(message)) {
+            PortletPreferences prefs = request.getPreferences();
+            prefs.setValue(&quot;message&quot;, message);
+            prefs.store();
+        }
+    }
+}
+                               </pre></div>
+                               
+                               
+<p>
+                               You don't have to compile the source because 
it's groovy.
+                               </p>
+                       </div>
+                       
+<div class="section">
+<h3>2. The portlet.xml<a name="a2._The_portlet.xml"></a></h3>
+                       
+<p>
+                       Create the file portlet.xml in the 
groovy-simplest/WEB-INF directory.
+                       </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 id=&quot;HelloGroovy&quot;&gt;
+    &lt;portlet-name&gt;HelloGroovy&lt;/portlet-name&gt;
+    &lt;display-name&gt;Hello Groovy Display Name&lt;/display-name&gt;
+    
&lt;portlet-class&gt;org.apache.portals.bridges.groovy.GroovyPortlet&lt;/portlet-class&gt;
+    &lt;init-param&gt;
+      &lt;name&gt;script-source&lt;/name&gt;
+      &lt;!-- Note: You can set script source in three ways.
+                 The first is to use relative path uri,
+                 the second is to use file: url,
+                 and the last is to classpath: uri --&gt;
+      &lt;!--
+      &lt;value&gt;/WEB-INF/groovy/HelloGroovy.groovy&lt;/value&gt;
+      &lt;value&gt;file:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/webapps/demo/WEB-INF/groovy/HelloGroovy.groovy&lt;/value&gt;
+      --&gt;
+      &lt;value&gt;classpath:HelloGroovy.groovy&lt;/value&gt;
+    &lt;/init-param&gt;
+    &lt;!-- If auto-refresh is true, then a modification of script source 
applies instantly. --&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;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 Title&lt;/title&gt;
+      &lt;short-title&gt;Hello Groovy Short Title&lt;/short-title&gt;
+    &lt;/portlet-info&gt;
+  &lt;/portlet&gt;
+&lt;/portlet-app&gt;
+                       </pre></div>
+                       
+                       </div>
+                       
+<div class="section">
+<h3>3. The web.xml<a name="a3._The_web.xml"></a></h3>
+                       
+<p>
+            You don't have to add any special tags for this simple example,
+            but you can add some tags for supporting Groovlet or Groovy 
template as a view page.
+            Please see the groovy documentation for those.
+</p>
+<div class="source">
+<pre>
+&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+&lt;!DOCTYPE web-app PUBLIC &quot;-//Sun Microsystems, Inc.//DTD Web 
Application 2.3//EN&quot;
+                         
&quot;http://java.sun.com/dtd/web-app_2_3.dtd&quot;&gt;
+&lt;web-app&gt;
+  &lt;display-name&gt;Groovy Simplest&lt;/display-name&gt;
+  &lt;description&gt;The world's simplest Groovy portlet&lt;/description&gt;
+
+&lt;/web-app&gt;
+</pre></div>
+                       
+                       </div>
+                       
+<div class="section">
+<h3>4. The View pages for view, edit and help mode<a 
name="a4._The_View_pages_for_view_edit_and_help_mode"></a></h3>
+                       
+<p>
+                        Create the hello-groovy-view.jsp file in the 
groovy-simplest/WEB-INF/view directory. Put whatever content you desire in it. 
Here is an example: 
+</p>
+<div class="source">
+<pre>
+&lt;%@ page session=&quot;false&quot; %&gt;                            
+&lt;%@ page import=&quot;javax.portlet.*&quot;%&gt;
+&lt;%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%&gt;
+
+&lt;portlet:defineObjects/&gt;                            
+
+&lt;%
+String message = renderRequest.getPreferences().getValue(&quot;message&quot;, 
&quot;Hello, Groovy!&quot;);
+%&gt;
+
+&lt;h1&gt;&lt;%=message%&gt;!&lt;/h1&gt;
+</pre></div>
+
+                        Create the hello-groovy-edit.jsp file in the 
groovy-simplest/WEB-INF/view directory. Put whatever content you desire in it. 
Here is an example: 
+
+<div class="source">
+<pre>
+&lt;%@ page session=&quot;false&quot; %&gt;                            
+&lt;%@ page import=&quot;javax.portlet.*&quot;%&gt;
+&lt;%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%&gt;
+
+&lt;portlet:defineObjects/&gt;                            
+
+&lt;%
+String message = renderRequest.getPreferences().getValue(&quot;message&quot;, 
&quot;Hello, Groovy!&quot;);
+%&gt;
+
+&lt;form method=&quot;post&quot; 
action=&quot;&lt;portlet:actionURL/&gt;&quot;&gt;
+    Message: &lt;input type=&quot;text&quot; name=&quot;message&quot; 
value=&quot;&lt;%=message%&gt;&quot;&gt;
+    &lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&gt;
+&lt;/form&gt;
+</pre></div>
+                        Last, create the hello-groovy-help.html file in the 
groovy-simplest/WEB-INF/view directory. Put whatever content you desire in it. 
Here is an example:
+
+<div class="source">
+<pre>
+&lt;H1&gt;Hello Groovy Help&lt;/H1&gt;
+&lt;HR&gt;
+
+&lt;P&gt;Groovy Portlet support rapid portlet application 
development.&lt;/P&gt;
+</pre></div>
+                       
+                       </div>
+                       
+<div class="section">
+<h3>5. The Dependency JARs<a name="a5._The_Dependency_JARs"></a></h3>
+                       
+<p>
+                        Copy the portals-bridges-groovy-1.0.jar,
+                        groovy-1.1.jar, antlr-2.7.6.jar, and asm-2.2.jar to 
the groovy-simplest/WEB-INF/lib
+                        directory. (The current version of groovy library was 
1.1-beta-2 when the author wrote this guide. Please use the latest version of 
groovy.)
+                        IMPORTANT: 
+                        Do NOT put the portlet-api-1.0.jar in the war file. If 
you have already built Jetspeed some of the jars should be in your Maven 
repository. If so executing these commands in the lib directory will set up the 
dependencies for you.
+                        </p>
+<div class="source">
+<pre>
+ln -s 
~/.maven/repository/org.apache.portals.bridges/jars/portals-bridges-groovy-1.1.jar
+                        </pre></div>
+                        And, if you download from <a class="externalLink" 
href="http://groovy.codehaus.org";>http://groovy.codehaus.org</a> and install 
groovy,
+                        you can find groovy-1.1.jar, antlr-2.7.6.jar, and 
asm-2.2.jar in the lib directory under groovy home directory.
+                        Also, copy the portlet.tld to the 
groovy-simplest/WEB-INF directory. You can find the portlet.tld file in 
jetspeed-2/src/webapps/WEB-INF/ source directory. Or you can copy  that from 
the WEB-INF/ directory of the demo portlet.
+                       
+                       </div>
+                       
+<div class="section">
+<h3>6. The WAR file<a name="a6._The_WAR_file"></a></h3>
+                       
+<p>
+                       From the directory groovy-simplest combine the files 
above into a war file using the command,
+                       </p>
+<div class="source">
+<pre>
+jar cvf ../groovy-simplest.war .
+                       </pre></div>
+                       
+                       </div>
+                       
+<div class="section">
+<h3>7. Deploy the WAR file<a name="a7._Deploy_the_WAR_file"></a></h3>
+                       
+<p>
+                       Copy the war file to 
<tt>$CATALINA_HOME/webapps/jetspeed/WEB-INF/deploy</tt>.
+                        Jetspeed-2 will deploy the webapp.
+                       </p>
+                       </div>
+                       
+<div class="section">
+<h3>8. The PSML<a name="a8._The_PSML"></a></h3>
+                       
+<p>
+                        Create the PSML page using the Jetspeed portlet 
chooser. Login and click on the
+                        edit page icon.
+                        Your user must have the permission to edit pages. The 
user <tt>admin</tt>
+                        password
+                        <tt>admin</tt> has permission to edit all pages.
+                       </p>
+                       </div>
             
-  
-
-  
-    
-  
-  
-    
-  </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>
-              
+<div class="section">
+<h3>9. Additional Notes<a name="a9._Additional_Notes"></a></h3>
                 
-              
-      
+<ul>
+                    
+<li>You can make the script source simpler than Java. See the groovy 
documentation.</li>
+                    
+<li>GroovyPortlet instantiates a groovy-scripted portlet instance just like 
any Java portlet, and so you can use any techniques used in Java portlet 
programming. For example, your groovy script portlet can extend 
org.apache.portals.bridges.common.GenericServletPortlet to simplify 
implementation.</li>
+                    
+<li>In this example, JSP and JSTL is used for view pages. However, you can use 
other technologies such as Velocity, Groovlet or Groovy template.</li>
+                    
+<li>If you use Groovlet or Groovy template, a solution for getting 
renderRequest and renderResponse can be like this:
+                    
+<div class="source">
+<pre>
+def renderRequest = request.getAttribute(&quot;javax.portlet.request&quot;)
+def renderResponse = request.getAttribute(&quot;javax.portlet.response&quot;)
+                    </pre></div>
+                    </li>
+                </ul>
+                       </div>
             
-      
-              
-            <li class="expanded">
-              <strong>Groovy Bridge</strong>
-                <ul>
-                  
-    <li class="none">
-                    <a href="../bridges-groovy/prefvalidate.html">Groovy 
PreferencesValidator Guide</a>
-          </li>
-                  
-    <li class="none">
-                    <a href="../bridges-groovy/headersupport.html">Jetspeed 
HeaderPhase Support Guide</a>
-          </li>
-              </ul>
-        </li>
-          </ul>
-              <h5>Archived Portals Bridges</h5>
-            <ul>
-              
+<div class="section">
+<h3>10. See Also<a name="a10._See_Also"></a></h3>
                 
-              
-      
-            
-      
-              
-        <li class="collapsed">
-                    <a href="../bridges-jsf/index.html">JSF Bridge</a>
-                </li>
-              
+<p>You can write preferences validator with groovy, and you can write a groovy 
script portlet supporting header phase (pre-286 feature).</p>
                 
-              
-      
-            
-      
-            
-      
-              
-        <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="[email protected]"></authors><div class="section"><h2><a 
name="Jetspeed_Groovy_Portlet_Guide"></a>Jetspeed Groovy Portlet Guide</h2>
-<p>
-                               This guide provides a tutorial for creating a 
Groovy portlet 
-                with full-featured portlet modes.
-                       </p>
-<div class="section"><h3><a name="a1._The_Portlet_Class"></a>1. The Portlet 
Class</h3>
-<p>
-                               Create the file HelloGroovy.groovy in a 
directory called
-                               groovy-simplest/WEB-INF/classes:
-                               <div class="source"><pre>
-import javax.portlet.GenericPortlet;
-import javax.portlet.PortletContext;
-import javax.portlet.PortletRequestDispatcher;
-import javax.portlet.RenderRequest;
-import javax.portlet.RenderResponse;
-import javax.portlet.ActionRequest;
-import javax.portlet.ActionResponse;
-import javax.portlet.PortletPreferences;
-
-public class HelloGroovy extends GenericPortlet
-{
-    public void doView(RenderRequest request, RenderResponse response)
-    {
-        PortletContext context = getPortletContext();
-        PortletRequestDispatcher rd = 
-            
context.getRequestDispatcher(&quot;/WEB-INF/view/hello-groovy-view.jsp&quot;);
-        rd.include(request, response);
-    }
-    
-    public void doEdit(RenderRequest request, RenderResponse response)
-    {
-        PortletContext context = getPortletContext();
-        PortletRequestDispatcher rd = 
-            
context.getRequestDispatcher(&quot;/WEB-INF/view/hello-groovy-edit.jsp&quot;);
-        rd.include(request, response);
-    }
-
-    public void doHelp(RenderRequest request, RenderResponse response)
-    {
-        PortletContext context = getPortletContext();
-        PortletRequestDispatcher rd = 
-            
context.getRequestDispatcher(&quot;/WEB-INF/view/hello-groovy-help.html&quot;);
-        rd.include(request,response);
-    }
-    
-    public void processAction(ActionRequest request, ActionResponse response)
-    {
-        String message = request.getParameter(&quot;message&quot;);
-        
-        if (null != message &amp;&amp; !&quot;&quot;.equals(message)) {
-            PortletPreferences prefs = request.getPreferences();
-            prefs.setValue(&quot;message&quot;, message);
-            prefs.store();
-        }
-    }
-}
-                               </pre>
-</div>
-</p>
-<p>
-                               You don't have to compile the source because 
it's groovy.
-                               </p>
-</div>
-<div class="section"><h3><a name="a2._The_portlet.xml"></a>2. The 
portlet.xml</h3>
-<p>
-                       Create the file portlet.xml in the 
groovy-simplest/WEB-INF directory.
-                       <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 id=&quot;HelloGroovy&quot;&gt;
-    &lt;portlet-name&gt;HelloGroovy&lt;/portlet-name&gt;
-    &lt;display-name&gt;Hello Groovy Display Name&lt;/display-name&gt;
-    
&lt;portlet-class&gt;org.apache.portals.bridges.groovy.GroovyPortlet&lt;/portlet-class&gt;
-    &lt;init-param&gt;
-      &lt;name&gt;script-source&lt;/name&gt;
-      &lt;!-- Note: You can set script source in three ways.
-                 The first is to use relative path uri,
-                 the second is to use file: url,
-                 and the last is to classpath: uri --&gt;
-      &lt;!--
-      &lt;value&gt;/WEB-INF/groovy/HelloGroovy.groovy&lt;/value&gt;
-      &lt;value&gt;file:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/webapps/demo/WEB-INF/groovy/HelloGroovy.groovy&lt;/value&gt;
-      --&gt;
-      &lt;value&gt;classpath:HelloGroovy.groovy&lt;/value&gt;
-    &lt;/init-param&gt;
-    &lt;!-- If auto-refresh is true, then a modification of script source 
applies instantly. --&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;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 Title&lt;/title&gt;
-      &lt;short-title&gt;Hello Groovy Short Title&lt;/short-title&gt;
-    &lt;/portlet-info&gt;
-  &lt;/portlet&gt;
-&lt;/portlet-app&gt;
-                       </pre>
-</div>
-</p>
-</div>
-<div class="section"><h3><a name="a3._The_web.xml"></a>3. The web.xml</h3>
-<p>
-            You don't have to add any special tags for this simple example,
-            but you can add some tags for supporting Groovlet or Groovy 
template as a view page.
-            Please see the groovy documentation for those.
-<div class="source"><pre>
-&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;!DOCTYPE web-app PUBLIC &quot;-//Sun Microsystems, Inc.//DTD Web 
Application 2.3//EN&quot;
-                         
&quot;http://java.sun.com/dtd/web-app_2_3.dtd&quot;&gt;
-&lt;web-app&gt;
-  &lt;display-name&gt;Groovy Simplest&lt;/display-name&gt;
-  &lt;description&gt;The world's simplest Groovy portlet&lt;/description&gt;
-
-&lt;/web-app&gt;
-</pre>
-</div>
-</p>
-</div>
-<div class="section"><h3><a 
name="a4._The_View_pages_for_view_edit_and_help_mode"></a>4. The View pages for 
view, edit and help mode</h3>
-<p>
-                        Create the hello-groovy-view.jsp file in the 
groovy-simplest/WEB-INF/view directory. Put whatever content you desire in it. 
Here is an example: 
-<div class="source"><pre>
-&lt;%@ page session=&quot;false&quot; %&gt;                            
-&lt;%@ page import=&quot;javax.portlet.*&quot;%&gt;
-&lt;%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%&gt;
-
-&lt;portlet:defineObjects/&gt;                            
-
-&lt;%
-String message = renderRequest.getPreferences().getValue(&quot;message&quot;, 
&quot;Hello, Groovy!&quot;);
-%&gt;
-
-&lt;h1&gt;&lt;%=message%&gt;!&lt;/h1&gt;
-</pre>
-</div>
-
-
-                        Create the hello-groovy-edit.jsp file in the 
groovy-simplest/WEB-INF/view directory. Put whatever content you desire in it. 
Here is an example: 
-<div class="source"><pre>
-&lt;%@ page session=&quot;false&quot; %&gt;                            
-&lt;%@ page import=&quot;javax.portlet.*&quot;%&gt;
-&lt;%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%&gt;
-
-&lt;portlet:defineObjects/&gt;                            
-
-&lt;%
-String message = renderRequest.getPreferences().getValue(&quot;message&quot;, 
&quot;Hello, Groovy!&quot;);
-%&gt;
-
-&lt;form method=&quot;post&quot; 
action=&quot;&lt;portlet:actionURL/&gt;&quot;&gt;
-    Message: &lt;input type=&quot;text&quot; name=&quot;message&quot; 
value=&quot;&lt;%=message%&gt;&quot;&gt;
-    &lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&gt;
-&lt;/form&gt;
-</pre>
-</div>
-
-                        Last, create the hello-groovy-help.html file in the 
groovy-simplest/WEB-INF/view directory. Put whatever content you desire in it. 
Here is an example:
-<div class="source"><pre>
-&lt;H1&gt;Hello Groovy Help&lt;/H1&gt;
-&lt;HR&gt;
-
-&lt;P&gt;Groovy Portlet support rapid portlet application 
development.&lt;/P&gt;
-</pre>
-</div>
-</p>
-</div>
-<div class="section"><h3><a name="a5._The_Dependency_JARs"></a>5. The 
Dependency JARs</h3>
-<p>
-                        Copy the portals-bridges-groovy-1.0.jar,
-                        groovy-1.1.jar, antlr-2.7.6.jar, and asm-2.2.jar to 
the groovy-simplest/WEB-INF/lib
-                        directory. (The current version of groovy library was 
1.1-beta-2 when the author wrote this guide. Please use the latest version of 
groovy.)
-                        IMPORTANT: 
-                        Do NOT put the portlet-api-1.0.jar in the war file. If 
you have already built Jetspeed some of the jars should be in your Maven 
repository. If so executing these commands in the lib directory will set up the 
dependencies for you.
-                        <div class="source"><pre>
-ln -s 
~/.maven/repository/org.apache.portals.bridges/jars/portals-bridges-groovy-1.1.jar
-                        </pre>
-</div>
-
-                        And, if you download from <a 
href="http://groovy.codehaus.org"; 
class="externalLink">http://groovy.codehaus.org</a> and install groovy,
-                        you can find groovy-1.1.jar, antlr-2.7.6.jar, and 
asm-2.2.jar in the lib directory under groovy home directory.
-                        Also, copy the portlet.tld to the 
groovy-simplest/WEB-INF directory. You can find the portlet.tld file in 
jetspeed-2/src/webapps/WEB-INF/ source directory. Or you can copy  that from 
the WEB-INF/ directory of the demo portlet.
-                       </p>
-</div>
-<div class="section"><h3><a name="a6._The_WAR_file"></a>6. The WAR file</h3>
-<p>
-                       From the directory groovy-simplest combine the files 
above into a war file using the command,
-                       <div class="source"><pre>
-jar cvf ../groovy-simplest.war .
-                       </pre>
-</div>
-</p>
-</div>
-<div class="section"><h3><a name="a7._Deploy_the_WAR_file"></a>7. Deploy the 
WAR file</h3>
-<p>
-                       Copy the war file to 
<code>$CATALINA_HOME/webapps/jetspeed/WEB-INF/deploy</code>.
-                        Jetspeed-2 will deploy the webapp.
-                       </p>
-</div>
-<div class="section"><h3><a name="a8._The_PSML"></a>8. The PSML</h3>
-<p>
-                        Create the PSML page using the Jetspeed portlet 
chooser. Login and click on the
-                        edit page icon.
-                        Your user must have the permission to edit pages. The 
user <code>admin</code>
-                        password
-                        <code>admin</code> has permission to edit all pages.
-                       </p>
-</div>
-<div class="section"><h3><a name="a9._Additional_Notes"></a>9. Additional 
Notes</h3>
-<ul><li>You can make the script source simpler than Java. See the groovy 
documentation.</li>
-<li>GroovyPortlet instantiates a groovy-scripted portlet instance just like 
any Java portlet, and so you can use any techniques used in Java portlet 
programming. For example, your groovy script portlet can extend 
org.apache.portals.bridges.common.GenericServletPortlet to simplify 
implementation.</li>
-<li>In this example, JSP and JSTL is used for view pages. However, you can use 
other technologies such as Velocity, Groovlet or Groovy template.</li>
-<li>If you use Groovlet or Groovy template, a solution for getting 
renderRequest and renderResponse can be like this:
-                    <div class="source"><pre>
-def renderRequest = request.getAttribute(&quot;javax.portlet.request&quot;)
-def renderResponse = request.getAttribute(&quot;javax.portlet.response&quot;)
-                    </pre>
-</div>
-</li>
-</ul>
-</div>
-<div class="section"><h3><a name="a10._See_Also"></a>10. See Also</h3>
-<p>You can write preferences validator with groovy, and you can write a groovy 
script portlet supporting header phase (pre-286 feature).</p>
-<ul><li><a href="prefvalidate.html">Jetspeed Groovy PreferencesValidator 
Guide</a></li>
-<li><a href="headersupport.html">Jetspeed Groovy Portlet with Header Phase 
Support Guide</a></li>
-</ul>
-</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>
+<ul>
+                    
+<li><a href="prefvalidate.html">Jetspeed Groovy PreferencesValidator 
Guide</a></li>
+                    
+<li><a href="headersupport.html">Jetspeed Groovy Portlet with Header Phase 
Support Guide</a></li>
+                </ul>
+            </div>
+               </div>
+       
+
+      </div>
+    </div>
+    <div class="clear">
+      <hr/>
+    </div>
+    <div id="footer">
+      <div class="xright">
+              Copyright &#169;                    2004-2022
+                        <a href="http://www.apache.org/";>Apache Software 
Foundation</a>.
+            All Rights Reserved.      
+                    
+                  </div>
+      <div class="clear">
+        <hr/>
+      </div>
+    </div>
+  </body>
+</html>


Reply via email to