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>
| <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 © 2004-2015
+ Copyright © 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">©
- 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>
+ | <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 © 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>
+ | <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( "dojo.lang.*" );
+ headerResource.dojoAddCoreLibraryRequire( "dojo.event.*" );
+ headerResource.dojoAddCoreLibraryRequire( "dojo.io.*" );
+ headerResource.dojoAddCoreLibraryRequire( "dojo.widget.*" );
+ headerResource.dojoAddCoreLibraryRequire(
"dojo.widget.Button" );
+ }
+
+ public void doView(RenderRequest request, RenderResponse response)
+ {
+ response.setContentType("text/html");
+
+ // Let's put a dojo widget button for simplicity here.
+ response.getWriter().println """
+ <button widgetId="helloGroovyButton"
dojoType="Button" onclick="alert('Hello, Groovy');">
+ Say Hello
+ </button>
+ """
+ }
+
+}
+ </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>
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app id="velocitysimplest" version="1.0">
+ <portlet id="HelloGroovyHeaderSupport">
+ <portlet-name>HelloGroovyHeaderSupport</portlet-name>
+ <display-name>Hello Groovy with Header Support Display
Name</display-name>
+
<portlet-class>org.apache.portals.bridges.groovy.GroovyPortletHeaderPhaseSupport</portlet-class>
+ <init-param>
+ <name>script-source</name>
+ <!-- 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 -->
+ <!--
+ <value>/WEB-INF/groovy/HelloGroovy.groovy</value>
+ <value>file:/C:/Program Files/Apache Software Foundation/Tomcat
5.5/webapps/demo/WEB-INF/groovy/HelloGroovy.groovy</value>
+ -->
+ <value>classpath:HelloGroovyHeaderSupport.groovy</value>
+ </init-param>
+ <!-- If auto-refresh is true, then a modification of script source
applies instantly. -->
+ <init-param>
+ <name>auto-refresh</name>
+ <value>true</value>
+ </init-param>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>VIEW</portlet-mode>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>Hello Groovy with Header Support Title</title>
+ <short-title>Hello Groovy with Header Support Short
Title</short-title>
+ </portlet-info>
+ </portlet>
+</portlet-app>
+ </pre></div>
+ The <portlet-class> 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( "dojo.lang.*" );
- headerResource.dojoAddCoreLibraryRequire( "dojo.event.*" );
- headerResource.dojoAddCoreLibraryRequire( "dojo.io.*" );
- headerResource.dojoAddCoreLibraryRequire( "dojo.widget.*" );
- headerResource.dojoAddCoreLibraryRequire(
"dojo.widget.Button" );
- }
-
- public void doView(RenderRequest request, RenderResponse response)
- {
- response.setContentType("text/html");
-
- // Let's put a dojo widget button for simplicity here.
- response.getWriter().println """
- <button widgetId="helloGroovyButton"
dojoType="Button" onclick="alert('Hello, Groovy');">
- Say Hello
- </button>
- """
- }
-
-}
- </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>
-<?xml version="1.0" encoding="UTF-8"?>
-<portlet-app id="velocitysimplest" version="1.0">
- <portlet id="HelloGroovyHeaderSupport">
- <portlet-name>HelloGroovyHeaderSupport</portlet-name>
- <display-name>Hello Groovy with Header Support Display
Name</display-name>
-
<portlet-class>org.apache.portals.bridges.groovy.GroovyPortletHeaderPhaseSupport</portlet-class>
- <init-param>
- <name>script-source</name>
- <!-- 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 -->
- <!--
- <value>/WEB-INF/groovy/HelloGroovy.groovy</value>
- <value>file:/C:/Program Files/Apache Software Foundation/Tomcat
5.5/webapps/demo/WEB-INF/groovy/HelloGroovy.groovy</value>
- -->
- <value>classpath:HelloGroovyHeaderSupport.groovy</value>
- </init-param>
- <!-- If auto-refresh is true, then a modification of script source
applies instantly. -->
- <init-param>
- <name>auto-refresh</name>
- <value>true</value>
- </init-param>
- <supports>
- <mime-type>text/html</mime-type>
- <portlet-mode>VIEW</portlet-mode>
- </supports>
- <supported-locale>en</supported-locale>
- <portlet-info>
- <title>Hello Groovy with Header Support Title</title>
- <short-title>Hello Groovy with Header Support Short
Title</short-title>
- </portlet-info>
- </portlet>
-</portlet-app>
- </pre>
-</div>
-
- The <portlet-class> 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">©
- 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 © 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>
+ | <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("/WEB-INF/view/hello-groovy-view.jsp");
+ rd.include(request, response);
+ }
+
+ public void doEdit(RenderRequest request, RenderResponse response)
+ {
+ PortletContext context = getPortletContext();
+ PortletRequestDispatcher rd =
+
context.getRequestDispatcher("/WEB-INF/view/hello-groovy-edit.jsp");
+ rd.include(request, response);
+ }
+
+ public void doHelp(RenderRequest request, RenderResponse response)
+ {
+ PortletContext context = getPortletContext();
+ PortletRequestDispatcher rd =
+
context.getRequestDispatcher("/WEB-INF/view/hello-groovy-help.html");
+ rd.include(request,response);
+ }
+
+ public void processAction(ActionRequest request, ActionResponse response)
+ {
+ String message = request.getParameter("message");
+
+ if (null != message && !"".equals(message)) {
+ PortletPreferences prefs = request.getPreferences();
+ prefs.setValue("message", 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>
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app id="velocitysimplest" version="1.0">
+ <portlet id="HelloGroovy">
+ <portlet-name>HelloGroovy</portlet-name>
+ <display-name>Hello Groovy Display Name</display-name>
+
<portlet-class>org.apache.portals.bridges.groovy.GroovyPortlet</portlet-class>
+ <init-param>
+ <name>script-source</name>
+ <!-- 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 -->
+ <!--
+ <value>/WEB-INF/groovy/HelloGroovy.groovy</value>
+ <value>file:/C:/Program Files/Apache Software Foundation/Tomcat
5.5/webapps/demo/WEB-INF/groovy/HelloGroovy.groovy</value>
+ -->
+ <value>classpath:HelloGroovy.groovy</value>
+ </init-param>
+ <!-- If auto-refresh is true, then a modification of script source
applies instantly. -->
+ <init-param>
+ <name>auto-refresh</name>
+ <value>true</value>
+ </init-param>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>VIEW</portlet-mode>
+ <portlet-mode>EDIT</portlet-mode>
+ <portlet-mode>HELP</portlet-mode>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <portlet-info>
+ <title>Hello Groovy Title</title>
+ <short-title>Hello Groovy Short Title</short-title>
+ </portlet-info>
+ </portlet>
+</portlet-app>
+ </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>
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN"
+
"http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+ <display-name>Groovy Simplest</display-name>
+ <description>The world's simplest Groovy portlet</description>
+
+</web-app>
+</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>
+<%@ page session="false" %>
+<%@ page import="javax.portlet.*"%>
+<%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
+
+<portlet:defineObjects/>
+
+<%
+String message = renderRequest.getPreferences().getValue("message",
"Hello, Groovy!");
+%>
+
+<h1><%=message%>!</h1>
+</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>
+<%@ page session="false" %>
+<%@ page import="javax.portlet.*"%>
+<%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
+
+<portlet:defineObjects/>
+
+<%
+String message = renderRequest.getPreferences().getValue("message",
"Hello, Groovy!");
+%>
+
+<form method="post"
action="<portlet:actionURL/>">
+ Message: <input type="text" name="message"
value="<%=message%>">
+ <input type="submit" value="Submit">
+</form>
+</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>
+<H1>Hello Groovy Help</H1>
+<HR>
+
+<P>Groovy Portlet support rapid portlet application
development.</P>
+</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("javax.portlet.request")
+def renderResponse = request.getAttribute("javax.portlet.response")
+ </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("/WEB-INF/view/hello-groovy-view.jsp");
- rd.include(request, response);
- }
-
- public void doEdit(RenderRequest request, RenderResponse response)
- {
- PortletContext context = getPortletContext();
- PortletRequestDispatcher rd =
-
context.getRequestDispatcher("/WEB-INF/view/hello-groovy-edit.jsp");
- rd.include(request, response);
- }
-
- public void doHelp(RenderRequest request, RenderResponse response)
- {
- PortletContext context = getPortletContext();
- PortletRequestDispatcher rd =
-
context.getRequestDispatcher("/WEB-INF/view/hello-groovy-help.html");
- rd.include(request,response);
- }
-
- public void processAction(ActionRequest request, ActionResponse response)
- {
- String message = request.getParameter("message");
-
- if (null != message && !"".equals(message)) {
- PortletPreferences prefs = request.getPreferences();
- prefs.setValue("message", 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>
-<?xml version="1.0" encoding="UTF-8"?>
-<portlet-app id="velocitysimplest" version="1.0">
- <portlet id="HelloGroovy">
- <portlet-name>HelloGroovy</portlet-name>
- <display-name>Hello Groovy Display Name</display-name>
-
<portlet-class>org.apache.portals.bridges.groovy.GroovyPortlet</portlet-class>
- <init-param>
- <name>script-source</name>
- <!-- 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 -->
- <!--
- <value>/WEB-INF/groovy/HelloGroovy.groovy</value>
- <value>file:/C:/Program Files/Apache Software Foundation/Tomcat
5.5/webapps/demo/WEB-INF/groovy/HelloGroovy.groovy</value>
- -->
- <value>classpath:HelloGroovy.groovy</value>
- </init-param>
- <!-- If auto-refresh is true, then a modification of script source
applies instantly. -->
- <init-param>
- <name>auto-refresh</name>
- <value>true</value>
- </init-param>
- <supports>
- <mime-type>text/html</mime-type>
- <portlet-mode>VIEW</portlet-mode>
- <portlet-mode>EDIT</portlet-mode>
- <portlet-mode>HELP</portlet-mode>
- </supports>
- <supported-locale>en</supported-locale>
- <portlet-info>
- <title>Hello Groovy Title</title>
- <short-title>Hello Groovy Short Title</short-title>
- </portlet-info>
- </portlet>
-</portlet-app>
- </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>
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN"
-
"http://java.sun.com/dtd/web-app_2_3.dtd">
-<web-app>
- <display-name>Groovy Simplest</display-name>
- <description>The world's simplest Groovy portlet</description>
-
-</web-app>
-</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>
-<%@ page session="false" %>
-<%@ page import="javax.portlet.*"%>
-<%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
-
-<portlet:defineObjects/>
-
-<%
-String message = renderRequest.getPreferences().getValue("message",
"Hello, Groovy!");
-%>
-
-<h1><%=message%>!</h1>
-</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>
-<%@ page session="false" %>
-<%@ page import="javax.portlet.*"%>
-<%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
-
-<portlet:defineObjects/>
-
-<%
-String message = renderRequest.getPreferences().getValue("message",
"Hello, Groovy!");
-%>
-
-<form method="post"
action="<portlet:actionURL/>">
- Message: <input type="text" name="message"
value="<%=message%>">
- <input type="submit" value="Submit">
-</form>
-</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>
-<H1>Hello Groovy Help</H1>
-<HR>
-
-<P>Groovy Portlet support rapid portlet application
development.</P>
-</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("javax.portlet.request")
-def renderResponse = request.getAttribute("javax.portlet.response")
- </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">©
- 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 © 2004-2022
+ <a href="http://www.apache.org/">Apache Software
Foundation</a>.
+ All Rights Reserved.
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ </body>
+</html>