You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@portals.apache.org by at...@apache.org on 2012/12/16 23:55:26 UTC

svn commit: r1422709 [37/44] - in /portals/site-live/jetspeed-2.1.3: 2.1/schemas/ adminguide/ adminguide/css/ adminguide/images/ adminguide/images/logos/ css/ deployguide/ deployguide/css/ deployguide/images/ deployguide/images/ldap/ deployguide/images...

Added: portals/site-live/jetspeed-2.1.3/tutorials/ant/04/eclipse.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-2.1.3/tutorials/ant/04/eclipse.html?rev=1422709&view=auto
==============================================================================
--- portals/site-live/jetspeed-2.1.3/tutorials/ant/04/eclipse.html (added)
+++ portals/site-live/jetspeed-2.1.3/tutorials/ant/04/eclipse.html Sun Dec 16 22:54:22 2012
@@ -0,0 +1,88 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Jetspeed 2 Enterprise Portal - Eclipse Integration</title><style type="text/css" media="all">
+          @import url("../../../style/maven-base.css");
+          
+			    @import url("../../../style/maven-j2.css");@import url("../../../style/project.css");</style><link rel="stylesheet" href="../../../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a href="http://portals.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="http://portals.apache.org/images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-2" id="projectLogo"><img alt="Jetspeed 2 Enterprise Portal" src="http://portals.apache.org/images/Jetspeed_blue_med.png"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+                	Last published: 23 April 2009
+                  | Doc for 2.1.3</div><div class="xright">
+        
+        <a href="../../../usersguide/index.html">Users Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../adminguide/index.html">Admin Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../deployguide/index.html">Deployers Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../devguide/index.html">Developers Guide</a>
+      </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuEssentials"><h5>Essentials</h5><ul><li class="none"><a href="../../../index.html">Welcome</a></li><li class="none"><a href="../../../features.html">Features</a></li><li class="none"><a href="../../../getting-started.html">Getting Started</a></li><li class="none"><a href="../../../demo.html">Jetspeed Online Demos</a></li></ul></div><div id="menuGet_Jetspeed-2_1_3"><h5>Get Jetspeed-2.1.3</h5><ul><li class="none"><a href="../../../download.html">Download</a></li><li class="none"><a href="../../../getting-started-installer.html">Installer Instructions</a></li><li class="none"><a href="../../../release-notes.html">Release Notes</a></li></ul></div><div id="menuDocumentation_Guides"><h5>Documentation Guides</h5><ul><li class="none"><a href="../../../usersguide/index.html">Users Guide</a></li><li class="none"><a href="../../../adminguide/index.html">Administrators Guide</a></li>
 <li class="none"><a href="../../../deployguide/index.html">Deployment Guide</a></li><li class="none"><a href="../../../devguide/index.html">Developers Guide</a></li><li class="none"><a href="../../../guide-migration.html">Migration Guide</a></li></ul></div><div id="menuAPIs"><h5>APIs</h5><ul><li class="none"><a href="../../../multiproject/jetspeed-api/apidocs/index.html">Jetspeed-2 Java API</a></li><li class="none"><a href="../../../devguide/guide-ajax-api.html">Jetspeed-2 AJAX API</a></li><li class="none"><a href="../../../devguide/j2-maven-plugin.html">Jetspeed-2 Maven-2 Plugin</a></li></ul></div><div id="menuTutorials"><h5>Tutorials</h5><ul><li class="none"><a href="../../../tutorials/maven-2/index.html">Jetspeed Tutorial - Maven-2 Custom Build</a></li><li class="none"><a href="../../../tutorials/ant/index.html">Jetspeed Tutorial - Ant Custom Build (incomplete)</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven1.html">Maven-
 1 Custom Build</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven2.html">Maven-2 Custom Build</a></li></ul></div><div id="menuAbout_Jetspeed-2"><h5>About Jetspeed-2</h5><ul><li class="none"><a href="../../../j1-users.html">For Jetspeed-1 Users</a></li><li class="none"><a href="../../../j1-migration.html">Jetspeed-1 Migration Guideline</a></li><li class="none"><a href="../../../supporting-projects.html">Supporting Projects</a></li><li class="none"><a href="../../../who-uses-j2.html">Who Uses J2?</a></li><li class="none"><a href="../../../portlets-community.html">Portlets Community</a></li><li class="none"><a href="../../../how-to-help.html">How to Help?</a></li></ul></div><div id="menuSupport"><h5>Support</h5><ul><li class="none"><a href="../../../mail-lists.html">Mailing List</a></li><li class="none"><a href="../../../issue-tracking.html">Bug Database</a></li><li class="none"><a href="http://wiki.apache.org/portals/Jetspeed2" c
 lass="externalLink" title="External Link">Wiki</a></li><li class="none"><a href="../../../faq.html">FAQ</a></li></ul></div><div id="menuTranslation"><h5>Translation</h5><ul><li class="none"><a href="http://jetspeed-japan.sourceforge.jp/jetspeed-2-trans/ja/index.html" class="externalLink" title="External Link">Japanese</a></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentation</h5><ul><li class="none"><a href="../../../index.html">About Jetspeed 2 Enterprise Portal</a></li><li class="collapsed"><a href="../../../project-info.html">Project Info</a></li><li class="collapsed"><a href="../../../maven-reports.html">Project Reports</a></li><li class="none"><a href="http://maven.apache.org/development-process.html" class="externalLink" title="External Link">Development Process</a></li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="../../../images/logos/maven-button-1.png"></img></a></div></div>
 <div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Eclipse_Integration"></a><h2>Eclipse Integration</h2><p>
+				Before getting started, lets get Eclipse setup. Lets
+				create a Eclipse project for the jetexpress project.
+				Maven-2 can create Eclipse project and classpath files
+				from your Maven-2 project POM, automatically bringing in
+				all dependencies:
+			</p>
+    <div class="source"><pre>
+				
+# Linux	 
+cd /JetspeedTraining/workspace/jetexpress
+mvn eclipse:eclipse
+cp portal/.classpath .
+cp portal/.project .
+# Windows
+cd \JetspeedTraining\workspace\jetexpress
+mvn eclipse:eclipse
+copy portal\.classpath .
+copy portal\.project .
+     
+			</pre></div>
+  <p>
+				Lets do the same for the
+				<i>express-demo</i>
+				portlet application. You may prefer to actually create a
+				new Eclipse project to represent the portlet app
+				subproject. We recommend this, since Eclipse doesn't
+				work very well multi-Maven projects. Best to break them
+				out into one Maven project == one Eclipse project:
+			</p>
+    <div class="source"><pre>
+				
+# Linux	 
+cd /JetspeedTraining/workspace/jetexpress/applications/express-demo
+mvn eclipse:eclipse
+# Windows
+cd \JetspeedTraining\workspace\jetexpress\applications\express-demo
+mvn eclipse:eclipse
+     
+			</pre></div>
+  <p>
+				Now lets import these new projects. From the eclipse
+				menu, select File-&gt;Import:
+			</p><img src="../images/import-project.png" alt=""></img><img src="../images/import-project2.png" alt=""></img><p>
+				Repeat for both the applications/express-demo project.
+			</p><p>
+				Next, lets setup a classpath variable to point at the
+				Maven Repo, effectively resolving the jars for Eclipse.
+				In Eclipse, go to Window-&gt;Preferences-&gt;Java-&gt;Build
+				Path-&gt;Classpath Variables-&gt;New...:
+			</p><img src="../images/eclipse-classpath.png" alt=""></img><p>
+				If you would like to work with the Jetspeed source from
+				the SVN Trunk, you will need to install the Subversion
+				Plugin for Eclipse. After doing so, simply check out the
+				project using the Subversion plugin:
+			</p><img src="../images/svn1.png" alt=""></img><img src="../images/svn2.png" alt=""></img><img src="../images/svn3.png" alt=""></img><p>We are now ready to start developing with Eclipse.</p><p>
+				<a href="overview.html">Previous</a>
+				<a href="hello.html">Next</a>
+			</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 1999-2009, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file

Propchange: portals/site-live/jetspeed-2.1.3/tutorials/ant/04/eclipse.html
------------------------------------------------------------------------------
    svn:executable = *

Added: portals/site-live/jetspeed-2.1.3/tutorials/ant/04/hello.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-2.1.3/tutorials/ant/04/hello.html?rev=1422709&view=auto
==============================================================================
--- portals/site-live/jetspeed-2.1.3/tutorials/ant/04/hello.html (added)
+++ portals/site-live/jetspeed-2.1.3/tutorials/ant/04/hello.html Sun Dec 16 22:54:22 2012
@@ -0,0 +1,95 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Jetspeed 2 Enterprise Portal - Hello World</title><style type="text/css" media="all">
+          @import url("../../../style/maven-base.css");
+          
+			    @import url("../../../style/maven-j2.css");@import url("../../../style/project.css");</style><link rel="stylesheet" href="../../../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a href="http://portals.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="http://portals.apache.org/images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-2" id="projectLogo"><img alt="Jetspeed 2 Enterprise Portal" src="http://portals.apache.org/images/Jetspeed_blue_med.png"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+                	Last published: 23 April 2009
+                  | Doc for 2.1.3</div><div class="xright">
+        
+        <a href="../../../usersguide/index.html">Users Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../adminguide/index.html">Admin Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../deployguide/index.html">Deployers Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../devguide/index.html">Developers Guide</a>
+      </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuEssentials"><h5>Essentials</h5><ul><li class="none"><a href="../../../index.html">Welcome</a></li><li class="none"><a href="../../../features.html">Features</a></li><li class="none"><a href="../../../getting-started.html">Getting Started</a></li><li class="none"><a href="../../../demo.html">Jetspeed Online Demos</a></li></ul></div><div id="menuGet_Jetspeed-2_1_3"><h5>Get Jetspeed-2.1.3</h5><ul><li class="none"><a href="../../../download.html">Download</a></li><li class="none"><a href="../../../getting-started-installer.html">Installer Instructions</a></li><li class="none"><a href="../../../release-notes.html">Release Notes</a></li></ul></div><div id="menuDocumentation_Guides"><h5>Documentation Guides</h5><ul><li class="none"><a href="../../../usersguide/index.html">Users Guide</a></li><li class="none"><a href="../../../adminguide/index.html">Administrators Guide</a></li>
 <li class="none"><a href="../../../deployguide/index.html">Deployment Guide</a></li><li class="none"><a href="../../../devguide/index.html">Developers Guide</a></li><li class="none"><a href="../../../guide-migration.html">Migration Guide</a></li></ul></div><div id="menuAPIs"><h5>APIs</h5><ul><li class="none"><a href="../../../multiproject/jetspeed-api/apidocs/index.html">Jetspeed-2 Java API</a></li><li class="none"><a href="../../../devguide/guide-ajax-api.html">Jetspeed-2 AJAX API</a></li><li class="none"><a href="../../../devguide/j2-maven-plugin.html">Jetspeed-2 Maven-2 Plugin</a></li></ul></div><div id="menuTutorials"><h5>Tutorials</h5><ul><li class="none"><a href="../../../tutorials/maven-2/index.html">Jetspeed Tutorial - Maven-2 Custom Build</a></li><li class="none"><a href="../../../tutorials/ant/index.html">Jetspeed Tutorial - Ant Custom Build (incomplete)</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven1.html">Maven-
 1 Custom Build</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven2.html">Maven-2 Custom Build</a></li></ul></div><div id="menuAbout_Jetspeed-2"><h5>About Jetspeed-2</h5><ul><li class="none"><a href="../../../j1-users.html">For Jetspeed-1 Users</a></li><li class="none"><a href="../../../j1-migration.html">Jetspeed-1 Migration Guideline</a></li><li class="none"><a href="../../../supporting-projects.html">Supporting Projects</a></li><li class="none"><a href="../../../who-uses-j2.html">Who Uses J2?</a></li><li class="none"><a href="../../../portlets-community.html">Portlets Community</a></li><li class="none"><a href="../../../how-to-help.html">How to Help?</a></li></ul></div><div id="menuSupport"><h5>Support</h5><ul><li class="none"><a href="../../../mail-lists.html">Mailing List</a></li><li class="none"><a href="../../../issue-tracking.html">Bug Database</a></li><li class="none"><a href="http://wiki.apache.org/portals/Jetspeed2" c
 lass="externalLink" title="External Link">Wiki</a></li><li class="none"><a href="../../../faq.html">FAQ</a></li></ul></div><div id="menuTranslation"><h5>Translation</h5><ul><li class="none"><a href="http://jetspeed-japan.sourceforge.jp/jetspeed-2-trans/ja/index.html" class="externalLink" title="External Link">Japanese</a></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentation</h5><ul><li class="none"><a href="../../../index.html">About Jetspeed 2 Enterprise Portal</a></li><li class="collapsed"><a href="../../../project-info.html">Project Info</a></li><li class="collapsed"><a href="../../../maven-reports.html">Project Reports</a></li><li class="none"><a href="http://maven.apache.org/development-process.html" class="externalLink" title="External Link">Development Process</a></li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="../../../images/logos/maven-button-1.png"></img></a></div></div>
 <div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Hello_World_Portlet"></a><h2>Hello World Portlet</h2><p>
+				We are going to create a portlet using the Eclipse Java
+				perspective. Go to the
+				<i>express-demo</i>
+				project, click on the
+				<i>com.bluesunrise.portal.portlets.tutorial</i>
+				package, and create a new Java class:
+			</p><img src="../images/new-portlet.png" alt=""></img><p>
+				You will see a new portlet in Eclipse named
+				BonjourWorld. Go ahead Override and Implement the
+				following methods:
+			</p><img src="../images/override-impl.png" alt=""></img><p>
+				Each one of these methods is associated with a portlet
+				mode. Lets make these methods actually do something.
+				Since we are in the render phase when
+				doView/doEdit/doHelp are called, its probably best to
+				render something. The RenderResponse renders content to
+				the output stream of the portlet. Set the content type
+				on the response, and then print a
+				<i>hello world</i>
+				message using a Java Writer:
+			</p>
+    <div class="source"><pre>
+				
+    protected void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
+    {
+        response.setContentType("text/html"); 
+        response.getWriter().println("&lt;b&gt;Bonjour: View Mode&lt;/b&gt;");
+    }
+	     
+			</pre></div>
+  <p>
+				Repeat the same process for Edit and Help modes. Now
+				lets edit the portlet.xml, and create a portlet
+				descriptor entry for our portlet. Notice that the
+				&lt;supports&gt; element contains that same portlet
+				modes that we support in our
+				<i>do</i>
+				methods.
+			</p>
+    <div class="source"><pre>
+				
+    &lt;portlet&gt;
+        &lt;description&gt;Bonjour Monde Portlet&lt;/description&gt;		
+        &lt;portlet-name&gt;BonjourMonde&lt;/portlet-name&gt;	
+        &lt;display-name&gt;Bonjour Monde&lt;/display-name&gt;
+        &lt;portlet-class&gt;com.bluesunrise.portal.portlets.tutorial.BonjourWorld&lt;/portlet-class&gt;	        
+        &lt;supports&gt;
+            &lt;mime-type&gt;text/html&lt;/mime-type&gt;
+            &lt;portlet-mode&gt;VIEW&lt;/portlet-mode&gt;
+            &lt;portlet-mode&gt;EDIT&lt;/portlet-mode&gt;
+            &lt;portlet-mode&gt;HELP&lt;/portlet-mode&gt;            
+        &lt;/supports&gt;
+        &lt;supported-locale&gt;en&lt;/supported-locale&gt;      	
+	    &lt;portlet-info&gt;
+        &lt;title&gt;Bonjour Monde&lt;/title&gt;
+          &lt;short-title&gt;Bonjour&lt;/short-title&gt;
+          &lt;keywords&gt;tutorial,bonjour,hello&lt;/keywords&gt;
+       &lt;/portlet-info&gt;
+	&lt;/portlet&gt;	 
+	     
+			</pre></div>
+  <p>
+				<a href="overview.html">Previous</a>
+				<a href="tutorial-psml.html">Next</a>
+			</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 1999-2009, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file

Propchange: portals/site-live/jetspeed-2.1.3/tutorials/ant/04/hello.html
------------------------------------------------------------------------------
    svn:executable = *

Added: portals/site-live/jetspeed-2.1.3/tutorials/ant/04/overview.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-2.1.3/tutorials/ant/04/overview.html?rev=1422709&view=auto
==============================================================================
--- portals/site-live/jetspeed-2.1.3/tutorials/ant/04/overview.html (added)
+++ portals/site-live/jetspeed-2.1.3/tutorials/ant/04/overview.html Sun Dec 16 22:54:22 2012
@@ -0,0 +1,58 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Jetspeed 2 Enterprise Portal - Portlet 101</title><style type="text/css" media="all">
+          @import url("../../../style/maven-base.css");
+          
+			    @import url("../../../style/maven-j2.css");@import url("../../../style/project.css");</style><link rel="stylesheet" href="../../../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a href="http://portals.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="http://portals.apache.org/images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-2" id="projectLogo"><img alt="Jetspeed 2 Enterprise Portal" src="http://portals.apache.org/images/Jetspeed_blue_med.png"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+                	Last published: 23 April 2009
+                  | Doc for 2.1.3</div><div class="xright">
+        
+        <a href="../../../usersguide/index.html">Users Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../adminguide/index.html">Admin Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../deployguide/index.html">Deployers Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../devguide/index.html">Developers Guide</a>
+      </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuEssentials"><h5>Essentials</h5><ul><li class="none"><a href="../../../index.html">Welcome</a></li><li class="none"><a href="../../../features.html">Features</a></li><li class="none"><a href="../../../getting-started.html">Getting Started</a></li><li class="none"><a href="../../../demo.html">Jetspeed Online Demos</a></li></ul></div><div id="menuGet_Jetspeed-2_1_3"><h5>Get Jetspeed-2.1.3</h5><ul><li class="none"><a href="../../../download.html">Download</a></li><li class="none"><a href="../../../getting-started-installer.html">Installer Instructions</a></li><li class="none"><a href="../../../release-notes.html">Release Notes</a></li></ul></div><div id="menuDocumentation_Guides"><h5>Documentation Guides</h5><ul><li class="none"><a href="../../../usersguide/index.html">Users Guide</a></li><li class="none"><a href="../../../adminguide/index.html">Administrators Guide</a></li>
 <li class="none"><a href="../../../deployguide/index.html">Deployment Guide</a></li><li class="none"><a href="../../../devguide/index.html">Developers Guide</a></li><li class="none"><a href="../../../guide-migration.html">Migration Guide</a></li></ul></div><div id="menuAPIs"><h5>APIs</h5><ul><li class="none"><a href="../../../multiproject/jetspeed-api/apidocs/index.html">Jetspeed-2 Java API</a></li><li class="none"><a href="../../../devguide/guide-ajax-api.html">Jetspeed-2 AJAX API</a></li><li class="none"><a href="../../../devguide/j2-maven-plugin.html">Jetspeed-2 Maven-2 Plugin</a></li></ul></div><div id="menuTutorials"><h5>Tutorials</h5><ul><li class="none"><a href="../../../tutorials/maven-2/index.html">Jetspeed Tutorial - Maven-2 Custom Build</a></li><li class="none"><a href="../../../tutorials/ant/index.html">Jetspeed Tutorial - Ant Custom Build (incomplete)</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven1.html">Maven-
 1 Custom Build</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven2.html">Maven-2 Custom Build</a></li></ul></div><div id="menuAbout_Jetspeed-2"><h5>About Jetspeed-2</h5><ul><li class="none"><a href="../../../j1-users.html">For Jetspeed-1 Users</a></li><li class="none"><a href="../../../j1-migration.html">Jetspeed-1 Migration Guideline</a></li><li class="none"><a href="../../../supporting-projects.html">Supporting Projects</a></li><li class="none"><a href="../../../who-uses-j2.html">Who Uses J2?</a></li><li class="none"><a href="../../../portlets-community.html">Portlets Community</a></li><li class="none"><a href="../../../how-to-help.html">How to Help?</a></li></ul></div><div id="menuSupport"><h5>Support</h5><ul><li class="none"><a href="../../../mail-lists.html">Mailing List</a></li><li class="none"><a href="../../../issue-tracking.html">Bug Database</a></li><li class="none"><a href="http://wiki.apache.org/portals/Jetspeed2" c
 lass="externalLink" title="External Link">Wiki</a></li><li class="none"><a href="../../../faq.html">FAQ</a></li></ul></div><div id="menuTranslation"><h5>Translation</h5><ul><li class="none"><a href="http://jetspeed-japan.sourceforge.jp/jetspeed-2-trans/ja/index.html" class="externalLink" title="External Link">Japanese</a></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentation</h5><ul><li class="none"><a href="../../../index.html">About Jetspeed 2 Enterprise Portal</a></li><li class="collapsed"><a href="../../../project-info.html">Project Info</a></li><li class="collapsed"><a href="../../../maven-reports.html">Project Reports</a></li><li class="none"><a href="http://maven.apache.org/development-process.html" class="externalLink" title="External Link">Development Process</a></li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="../../../images/logos/maven-button-1.png"></img></a></div></div>
 <div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Portlet_Development_with_the_Portlet_API"></a><h2>Portlet Development with the Portlet API</h2><p>
+				This section of the tutorial covers Portlet Development
+				with the Java Portlet API.
+			</p><p>
+				<ul>
+					<li>Getting started with Eclipse</li>
+					<li>
+						Bonjour Monde Portlet: the staple Hello World
+						demo to get things rolling introduces the
+						portlet.xml, as well as basic Portlet API
+						concepts.
+					</li>
+					<li>
+						The Weather Portlet: using init parameters,
+						preferences, and request parameters
+					</li>
+					<li>
+						The Stock Quote Portlet: actions, JSP, Portlet
+						API Tag Library
+					</li>
+					<li>
+						Interportlet communication, more advanced
+						Portlet programming.
+					</li>
+				</ul>
+			</p><p>
+				<a href="../03/pages.html">Previous</a>
+				<a href="eclipse.html">Next</a>
+			</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 1999-2009, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file

Propchange: portals/site-live/jetspeed-2.1.3/tutorials/ant/04/overview.html
------------------------------------------------------------------------------
    svn:executable = *

Added: portals/site-live/jetspeed-2.1.3/tutorials/ant/04/taglib.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-2.1.3/tutorials/ant/04/taglib.html?rev=1422709&view=auto
==============================================================================
--- portals/site-live/jetspeed-2.1.3/tutorials/ant/04/taglib.html (added)
+++ portals/site-live/jetspeed-2.1.3/tutorials/ant/04/taglib.html Sun Dec 16 22:54:22 2012
@@ -0,0 +1,170 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Jetspeed 2 Enterprise Portal - Taglibs</title><style type="text/css" media="all">
+          @import url("../../../style/maven-base.css");
+          
+			    @import url("../../../style/maven-j2.css");@import url("../../../style/project.css");</style><link rel="stylesheet" href="../../../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a href="http://portals.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="http://portals.apache.org/images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-2" id="projectLogo"><img alt="Jetspeed 2 Enterprise Portal" src="http://portals.apache.org/images/Jetspeed_blue_med.png"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+                	Last published: 23 April 2009
+                  | Doc for 2.1.3</div><div class="xright">
+        
+        <a href="../../../usersguide/index.html">Users Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../adminguide/index.html">Admin Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../deployguide/index.html">Deployers Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../devguide/index.html">Developers Guide</a>
+      </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuEssentials"><h5>Essentials</h5><ul><li class="none"><a href="../../../index.html">Welcome</a></li><li class="none"><a href="../../../features.html">Features</a></li><li class="none"><a href="../../../getting-started.html">Getting Started</a></li><li class="none"><a href="../../../demo.html">Jetspeed Online Demos</a></li></ul></div><div id="menuGet_Jetspeed-2_1_3"><h5>Get Jetspeed-2.1.3</h5><ul><li class="none"><a href="../../../download.html">Download</a></li><li class="none"><a href="../../../getting-started-installer.html">Installer Instructions</a></li><li class="none"><a href="../../../release-notes.html">Release Notes</a></li></ul></div><div id="menuDocumentation_Guides"><h5>Documentation Guides</h5><ul><li class="none"><a href="../../../usersguide/index.html">Users Guide</a></li><li class="none"><a href="../../../adminguide/index.html">Administrators Guide</a></li>
 <li class="none"><a href="../../../deployguide/index.html">Deployment Guide</a></li><li class="none"><a href="../../../devguide/index.html">Developers Guide</a></li><li class="none"><a href="../../../guide-migration.html">Migration Guide</a></li></ul></div><div id="menuAPIs"><h5>APIs</h5><ul><li class="none"><a href="../../../multiproject/jetspeed-api/apidocs/index.html">Jetspeed-2 Java API</a></li><li class="none"><a href="../../../devguide/guide-ajax-api.html">Jetspeed-2 AJAX API</a></li><li class="none"><a href="../../../devguide/j2-maven-plugin.html">Jetspeed-2 Maven-2 Plugin</a></li></ul></div><div id="menuTutorials"><h5>Tutorials</h5><ul><li class="none"><a href="../../../tutorials/maven-2/index.html">Jetspeed Tutorial - Maven-2 Custom Build</a></li><li class="none"><a href="../../../tutorials/ant/index.html">Jetspeed Tutorial - Ant Custom Build (incomplete)</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven1.html">Maven-
 1 Custom Build</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven2.html">Maven-2 Custom Build</a></li></ul></div><div id="menuAbout_Jetspeed-2"><h5>About Jetspeed-2</h5><ul><li class="none"><a href="../../../j1-users.html">For Jetspeed-1 Users</a></li><li class="none"><a href="../../../j1-migration.html">Jetspeed-1 Migration Guideline</a></li><li class="none"><a href="../../../supporting-projects.html">Supporting Projects</a></li><li class="none"><a href="../../../who-uses-j2.html">Who Uses J2?</a></li><li class="none"><a href="../../../portlets-community.html">Portlets Community</a></li><li class="none"><a href="../../../how-to-help.html">How to Help?</a></li></ul></div><div id="menuSupport"><h5>Support</h5><ul><li class="none"><a href="../../../mail-lists.html">Mailing List</a></li><li class="none"><a href="../../../issue-tracking.html">Bug Database</a></li><li class="none"><a href="http://wiki.apache.org/portals/Jetspeed2" c
 lass="externalLink" title="External Link">Wiki</a></li><li class="none"><a href="../../../faq.html">FAQ</a></li></ul></div><div id="menuTranslation"><h5>Translation</h5><ul><li class="none"><a href="http://jetspeed-japan.sourceforge.jp/jetspeed-2-trans/ja/index.html" class="externalLink" title="External Link">Japanese</a></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentation</h5><ul><li class="none"><a href="../../../index.html">About Jetspeed 2 Enterprise Portal</a></li><li class="collapsed"><a href="../../../project-info.html">Project Info</a></li><li class="collapsed"><a href="../../../maven-reports.html">Project Reports</a></li><li class="none"><a href="http://maven.apache.org/development-process.html" class="externalLink" title="External Link">Development Process</a></li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="../../../images/logos/maven-button-1.png"></img></a></div></div>
 <div id="bodyColumn"><div class="contentBox"><div class="section"><a name="JSP_and_Portlet_API_Taglib"></a><h2>JSP and Portlet API Taglib</h2><p>
+				Lets create another portlet. This portlet will not have
+				a Java class. Instead it will be written entirely in
+				JSP. Note that you can mix JSP and a Java class for the
+				implementation of your Java class as you will see in the
+				Stock Quote portlet example. Go to the
+				<i>express-demo</i>
+				project, click on the
+				<i>src/webapp/WEB-INF/view/</i>
+				directory, and create a JSP file named
+				<b>tutorial.jsp</b>
+				. Enter the following JSP code:
+			</p>
+    <div class="source"><pre>
+				
+&lt;%@ page session="true" contentType="text/html;charset=utf-8"%&gt;
+&lt;%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%&gt;
+&lt;%@ taglib uri="http://java.sun.com/jstl/core" prefix='c' %&gt; 
+
+&lt;portlet:defineObjects/&gt;
+
+&lt;portlet:renderURL var="max" windowState='maximized'/&gt;
+&lt;portlet:renderURL var="normal" windowState='normal'/&gt;
+&lt;c:out value="${renderRequest.windowState}"/&gt;
+&lt;c:if test="${renderRequest.windowState == 'maximized'}"&gt;
+&lt;a href='&lt;%=normal%&gt;'&gt;Normal&lt;/a&gt;
+&lt;/c:if&gt;
+&lt;c:if test="${renderRequest.windowState == 'normal'}"&gt;
+&lt;a href='&lt;%=max%&gt;'&gt;Max&lt;/a&gt;
+&lt;/c:if&gt;
+	     
+			</pre></div>
+  <p>
+				Every portlet JSP page is required to have the
+				<b>defineObjects</b>
+				tag at the top. Of course you also need the TLD
+				reference. Portlets need to write their links to go back
+				to the portal, not back to each individual servlet or
+				JSP. That is the main difference between writing
+				portlets and servlets. If you are using a framework like
+				Struts or JSF correctly, these details should be hidden
+				from you in the framework. The tag that we are using
+				here is the
+				<b>&lt;portlet:renderURL&gt;</b>
+				. It allows you to create a render phase link back to
+				this portlet, going through the portal. You can set
+				window states, request parameters, and portlet mode
+				changes on the URL. The other kind of link that you can
+				create is an action URL:
+				<b>&lt;portlet:actionURL&gt;</b>
+				, which is usually used with a HTML form to post back
+				parameters to the portlet and initial a blocking action
+				phase event for the targeted portlet. The
+				<b>&lt;portlet:defineObjects&gt;</b>
+				tag declares three variables for your page:
+				<table class="bodyTable"><tr class="b"><th>JSP variable</th><th>Description</th></tr><tr class="a"><td>renderRequest</td><td>The RenderRequest object</td></tr><tr class="b"><td>renderResponse</td><td>The RenderResponse object</td></tr><tr class="a"><td>portletConfig</td><td>The PortletConfig object</td></tr></table>
+			</p><p>
+				Here is the portlet.xml for our JSP portlet. It is based
+				on the
+				<b>GenericServletPortlet</b>
+				, provided by Portals Bridges in a jar file dependency.
+				Notice the init-param named
+				<b>ViewPage</b>
+				. This param defines which webapp-relative JSP to use
+				for View Mode. Similiarly we have are
+				<b>EditPage</b>
+				for edit mode, and
+				<b>HelpPage</b>
+				for help mode.
+			</p>
+    <div class="source"><pre>
+				
+ &lt;portlet&gt;   
+    &lt;description&gt;The 2nd Tutorial with JSP&lt;/description&gt;		
+    &lt;portlet-name&gt;TutorialPortlet2&lt;/portlet-name&gt;	
+    &lt;display-name&gt;Tutorial Portlet 2&lt;/display-name&gt;
+    &lt;portlet-class&gt;org.apache.portals.bridges.common.GenericServletPortlet&lt;/portlet-class&gt;	        
+    &lt;init-param&gt;
+        &lt;name&gt;ViewPage&lt;/name&gt;
+        &lt;value&gt;/WEB-INF/view/tutorial.jsp&lt;/value&gt;
+    &lt;/init-param&gt;          
+    &lt;init-param&gt;
+        &lt;name&gt;EditPage&lt;/name&gt;
+        &lt;value&gt;/WEB-INF/view/tutorial.jsp&lt;/value&gt;
+    &lt;/init-param&gt;          
+    &lt;init-param&gt;
+        &lt;name&gt;HelpPage&lt;/name&gt;
+        &lt;value&gt;/WEB-INF/view/tutorial.jsp&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;Tutorial Portlet&lt;/title&gt;
+        &lt;short-title&gt;tutorial&lt;/short-title&gt;
+		&lt;keywords&gt;tutorial,hello,JSP,taglib&lt;/keywords&gt;
+    &lt;/portlet-info&gt;
+    &lt;portlet-preferences&gt;
+        &lt;preference&gt;                            
+            &lt;name&gt;test&lt;/name&gt;                    
+            &lt;value&gt;hello&lt;/value&gt;    
+        &lt;/preference&gt;         
+    &lt;/portlet-preferences&gt;                      		
+&lt;/portlet&gt; 	 
+	     
+			</pre></div>
+  <p>
+				Add this portlet window fragment to the tutorial default
+				page, underneath the BonjourMonde fragment:
+			</p>
+    <div class="source"><pre>
+				
+	  &lt;fragment id="express-102" type="portlet" name="express-demo::TutorialPortlet2"/&gt;
+     
+			</pre></div>
+  <p>And then deploy your changes:</p>
+    <div class="source"><pre>
+				
+# Linux	 
+cd /JetspeedTraining/workspace/jetexpress/
+ant
+cd applications/express-demo
+mvn 
+cp target/express-demo-1.0.war /JetspeedTraining/tomcat-express/webapps/express-demo.war
+
+# Windows
+cd \JetspeedTraining\workspace\jetexpress
+ant
+cd applications\express-demo
+mvn 
+copy target\express-demo-1.0.war \JetspeedTraining\tomcat-express\webapps\express-demo.war
+     
+			</pre></div>
+  <p>
+				<a href="hello.html">Previous</a>
+				<a href="../05/jetspeed-service.html">Next</a>
+			</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 1999-2009, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file

Propchange: portals/site-live/jetspeed-2.1.3/tutorials/ant/04/taglib.html
------------------------------------------------------------------------------
    svn:executable = *

Added: portals/site-live/jetspeed-2.1.3/tutorials/ant/04/tutorial-psml.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-2.1.3/tutorials/ant/04/tutorial-psml.html?rev=1422709&view=auto
==============================================================================
--- portals/site-live/jetspeed-2.1.3/tutorials/ant/04/tutorial-psml.html (added)
+++ portals/site-live/jetspeed-2.1.3/tutorials/ant/04/tutorial-psml.html Sun Dec 16 22:54:22 2012
@@ -0,0 +1,92 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Jetspeed 2 Enterprise Portal - Adding a Page for the Tutorial Portlets</title><style type="text/css" media="all">
+          @import url("../../../style/maven-base.css");
+          
+			    @import url("../../../style/maven-j2.css");@import url("../../../style/project.css");</style><link rel="stylesheet" href="../../../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a href="http://portals.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="http://portals.apache.org/images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-2" id="projectLogo"><img alt="Jetspeed 2 Enterprise Portal" src="http://portals.apache.org/images/Jetspeed_blue_med.png"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+                	Last published: 23 April 2009
+                  | Doc for 2.1.3</div><div class="xright">
+        
+        <a href="../../../usersguide/index.html">Users Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../adminguide/index.html">Admin Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../deployguide/index.html">Deployers Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../devguide/index.html">Developers Guide</a>
+      </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuEssentials"><h5>Essentials</h5><ul><li class="none"><a href="../../../index.html">Welcome</a></li><li class="none"><a href="../../../features.html">Features</a></li><li class="none"><a href="../../../getting-started.html">Getting Started</a></li><li class="none"><a href="../../../demo.html">Jetspeed Online Demos</a></li></ul></div><div id="menuGet_Jetspeed-2_1_3"><h5>Get Jetspeed-2.1.3</h5><ul><li class="none"><a href="../../../download.html">Download</a></li><li class="none"><a href="../../../getting-started-installer.html">Installer Instructions</a></li><li class="none"><a href="../../../release-notes.html">Release Notes</a></li></ul></div><div id="menuDocumentation_Guides"><h5>Documentation Guides</h5><ul><li class="none"><a href="../../../usersguide/index.html">Users Guide</a></li><li class="none"><a href="../../../adminguide/index.html">Administrators Guide</a></li>
 <li class="none"><a href="../../../deployguide/index.html">Deployment Guide</a></li><li class="none"><a href="../../../devguide/index.html">Developers Guide</a></li><li class="none"><a href="../../../guide-migration.html">Migration Guide</a></li></ul></div><div id="menuAPIs"><h5>APIs</h5><ul><li class="none"><a href="../../../multiproject/jetspeed-api/apidocs/index.html">Jetspeed-2 Java API</a></li><li class="none"><a href="../../../devguide/guide-ajax-api.html">Jetspeed-2 AJAX API</a></li><li class="none"><a href="../../../devguide/j2-maven-plugin.html">Jetspeed-2 Maven-2 Plugin</a></li></ul></div><div id="menuTutorials"><h5>Tutorials</h5><ul><li class="none"><a href="../../../tutorials/maven-2/index.html">Jetspeed Tutorial - Maven-2 Custom Build</a></li><li class="none"><a href="../../../tutorials/ant/index.html">Jetspeed Tutorial - Ant Custom Build (incomplete)</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven1.html">Maven-
 1 Custom Build</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven2.html">Maven-2 Custom Build</a></li></ul></div><div id="menuAbout_Jetspeed-2"><h5>About Jetspeed-2</h5><ul><li class="none"><a href="../../../j1-users.html">For Jetspeed-1 Users</a></li><li class="none"><a href="../../../j1-migration.html">Jetspeed-1 Migration Guideline</a></li><li class="none"><a href="../../../supporting-projects.html">Supporting Projects</a></li><li class="none"><a href="../../../who-uses-j2.html">Who Uses J2?</a></li><li class="none"><a href="../../../portlets-community.html">Portlets Community</a></li><li class="none"><a href="../../../how-to-help.html">How to Help?</a></li></ul></div><div id="menuSupport"><h5>Support</h5><ul><li class="none"><a href="../../../mail-lists.html">Mailing List</a></li><li class="none"><a href="../../../issue-tracking.html">Bug Database</a></li><li class="none"><a href="http://wiki.apache.org/portals/Jetspeed2" c
 lass="externalLink" title="External Link">Wiki</a></li><li class="none"><a href="../../../faq.html">FAQ</a></li></ul></div><div id="menuTranslation"><h5>Translation</h5><ul><li class="none"><a href="http://jetspeed-japan.sourceforge.jp/jetspeed-2-trans/ja/index.html" class="externalLink" title="External Link">Japanese</a></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentation</h5><ul><li class="none"><a href="../../../index.html">About Jetspeed 2 Enterprise Portal</a></li><li class="collapsed"><a href="../../../project-info.html">Project Info</a></li><li class="collapsed"><a href="../../../maven-reports.html">Project Reports</a></li><li class="none"><a href="http://maven.apache.org/development-process.html" class="externalLink" title="External Link">Development Process</a></li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="../../../images/logos/maven-button-1.png"></img></a></div></div>
 <div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Adding_a_Page_for_the_Tutorial_Portlets"></a><h2>Adding a Page for the Tutorial Portlets</h2><p>
+				Now that we've created a new portlet, lets add a page to
+				hold that portlet. In the
+				<b>jetexpress</b>
+				project, lets add a folder to the root of our site named
+				<i>portal/src/webapp/WEB-INF/pages/tutorial/</i>
+				.
+			</p>
+    <div class="source"><pre>
+					
+&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+&lt;folder&gt;
+  &lt;title &gt;Tutorial&lt;/title&gt;  
+  &lt;metadata name="title" xml:lang="fr"&gt;Autodidacte&lt;/metadata&gt;
+
+  &lt;security-constraints&gt;
+    &lt;security-constraints-ref&gt;public-edit&lt;/security-constraints-ref&gt;
+  &lt;/security-constraints&gt;
+&lt;/folder&gt;	 
+	     
+			</pre></div>
+  <p>
+				Then lets add a new page named
+				<b>default-page.psml</b>
+				under the tutorial directory. Add a portlet window to
+				reference our new portlet:
+			</p>
+    <div class="source"><pre>
+				
+&lt;page&gt;
+  &lt;defaults layout-decorator="express-page" 
+            portlet-decorator="express-portlet"
+            skin="express"/&gt;
+  &lt;title&gt;JetExpress Tutorials&lt;/title&gt;
+  &lt;short-title&gt;Tutorials&lt;/short-title&gt;
+  &lt;fragment id="tutorial-100" type="layout" name="jetspeed-layouts::VelocityTwoColumns"&gt;  
+	  &lt;fragment id="express-101" type="portlet" name="express-demo::BonjourMonde"/&gt;
+  &lt;/fragment&gt;
+&lt;/page&gt;	 
+	     
+			</pre></div>
+  <p>Lets deploy our portlet and the new pages:</p>
+    <div class="source"><pre>
+				
+# Linux	 
+cd /JetspeedTraining/workspace/jetexpress
+ant
+cd applications/express-demo
+mvn 
+cp target/express-demo-1.0.war /JetspeedTraining/tomcat-express/webapps/express-demo.war
+
+# Windows
+cd \JetspeedTraining\workspace\jetexpress
+ant
+cd applications\express-demo
+mvn 
+copy target\express-demo-1.0.war \JetspeedTraining\tomcat-express\webapps\express-demo.war
+	     
+			</pre></div>
+  <p>
+				<a href="hello.html">Previous</a>
+				<a href="taglib.html">Next</a>
+			</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 1999-2009, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file

Propchange: portals/site-live/jetspeed-2.1.3/tutorials/ant/04/tutorial-psml.html
------------------------------------------------------------------------------
    svn:executable = *

Added: portals/site-live/jetspeed-2.1.3/tutorials/ant/04/velocity.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-2.1.3/tutorials/ant/04/velocity.html?rev=1422709&view=auto
==============================================================================
--- portals/site-live/jetspeed-2.1.3/tutorials/ant/04/velocity.html (added)
+++ portals/site-live/jetspeed-2.1.3/tutorials/ant/04/velocity.html Sun Dec 16 22:54:22 2012
@@ -0,0 +1,33 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Jetspeed 2 Enterprise Portal - Portlet 101</title><style type="text/css" media="all">
+          @import url("../../../style/maven-base.css");
+          
+			    @import url("../../../style/maven-j2.css");@import url("../../../style/project.css");</style><link rel="stylesheet" href="../../../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a href="http://portals.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="http://portals.apache.org/images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-2" id="projectLogo"><img alt="Jetspeed 2 Enterprise Portal" src="http://portals.apache.org/images/Jetspeed_blue_med.png"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+                	Last published: 23 April 2009
+                  | Doc for 2.1.3</div><div class="xright">
+        
+        <a href="../../../usersguide/index.html">Users Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../adminguide/index.html">Admin Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../deployguide/index.html">Deployers Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../devguide/index.html">Developers Guide</a>
+      </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuEssentials"><h5>Essentials</h5><ul><li class="none"><a href="../../../index.html">Welcome</a></li><li class="none"><a href="../../../features.html">Features</a></li><li class="none"><a href="../../../getting-started.html">Getting Started</a></li><li class="none"><a href="../../../demo.html">Jetspeed Online Demos</a></li></ul></div><div id="menuGet_Jetspeed-2_1_3"><h5>Get Jetspeed-2.1.3</h5><ul><li class="none"><a href="../../../download.html">Download</a></li><li class="none"><a href="../../../getting-started-installer.html">Installer Instructions</a></li><li class="none"><a href="../../../release-notes.html">Release Notes</a></li></ul></div><div id="menuDocumentation_Guides"><h5>Documentation Guides</h5><ul><li class="none"><a href="../../../usersguide/index.html">Users Guide</a></li><li class="none"><a href="../../../adminguide/index.html">Administrators Guide</a></li>
 <li class="none"><a href="../../../deployguide/index.html">Deployment Guide</a></li><li class="none"><a href="../../../devguide/index.html">Developers Guide</a></li><li class="none"><a href="../../../guide-migration.html">Migration Guide</a></li></ul></div><div id="menuAPIs"><h5>APIs</h5><ul><li class="none"><a href="../../../multiproject/jetspeed-api/apidocs/index.html">Jetspeed-2 Java API</a></li><li class="none"><a href="../../../devguide/guide-ajax-api.html">Jetspeed-2 AJAX API</a></li><li class="none"><a href="../../../devguide/j2-maven-plugin.html">Jetspeed-2 Maven-2 Plugin</a></li></ul></div><div id="menuTutorials"><h5>Tutorials</h5><ul><li class="none"><a href="../../../tutorials/maven-2/index.html">Jetspeed Tutorial - Maven-2 Custom Build</a></li><li class="none"><a href="../../../tutorials/ant/index.html">Jetspeed Tutorial - Ant Custom Build (incomplete)</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven1.html">Maven-
 1 Custom Build</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven2.html">Maven-2 Custom Build</a></li></ul></div><div id="menuAbout_Jetspeed-2"><h5>About Jetspeed-2</h5><ul><li class="none"><a href="../../../j1-users.html">For Jetspeed-1 Users</a></li><li class="none"><a href="../../../j1-migration.html">Jetspeed-1 Migration Guideline</a></li><li class="none"><a href="../../../supporting-projects.html">Supporting Projects</a></li><li class="none"><a href="../../../who-uses-j2.html">Who Uses J2?</a></li><li class="none"><a href="../../../portlets-community.html">Portlets Community</a></li><li class="none"><a href="../../../how-to-help.html">How to Help?</a></li></ul></div><div id="menuSupport"><h5>Support</h5><ul><li class="none"><a href="../../../mail-lists.html">Mailing List</a></li><li class="none"><a href="../../../issue-tracking.html">Bug Database</a></li><li class="none"><a href="http://wiki.apache.org/portals/Jetspeed2" c
 lass="externalLink" title="External Link">Wiki</a></li><li class="none"><a href="../../../faq.html">FAQ</a></li></ul></div><div id="menuTranslation"><h5>Translation</h5><ul><li class="none"><a href="http://jetspeed-japan.sourceforge.jp/jetspeed-2-trans/ja/index.html" class="externalLink" title="External Link">Japanese</a></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentation</h5><ul><li class="none"><a href="../../../index.html">About Jetspeed 2 Enterprise Portal</a></li><li class="collapsed"><a href="../../../project-info.html">Project Info</a></li><li class="collapsed"><a href="../../../maven-reports.html">Project Reports</a></li><li class="none"><a href="http://maven.apache.org/development-process.html" class="externalLink" title="External Link">Development Process</a></li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="../../../images/logos/maven-button-1.png"></img></a></div></div>
 <div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Velocity_Overview"></a><h2>Velocity Overview</h2><p>
+				<a href="velocity.apache.org">Velocity</a> is a Java-based template engine. 
+				It permits anyone to use a simple yet powerful template language to reference objects defined in Java code.
+			</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 1999-2009, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file

Propchange: portals/site-live/jetspeed-2.1.3/tutorials/ant/04/velocity.html
------------------------------------------------------------------------------
    svn:executable = *

Added: portals/site-live/jetspeed-2.1.3/tutorials/ant/05/jetspeed-service.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-2.1.3/tutorials/ant/05/jetspeed-service.html?rev=1422709&view=auto
==============================================================================
--- portals/site-live/jetspeed-2.1.3/tutorials/ant/05/jetspeed-service.html (added)
+++ portals/site-live/jetspeed-2.1.3/tutorials/ant/05/jetspeed-service.html Sun Dec 16 22:54:22 2012
@@ -0,0 +1,359 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Jetspeed 2 Enterprise Portal - Jetspeed Service</title><style type="text/css" media="all">
+          @import url("../../../style/maven-base.css");
+          
+			    @import url("../../../style/maven-j2.css");@import url("../../../style/project.css");</style><link rel="stylesheet" href="../../../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a href="http://portals.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="http://portals.apache.org/images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-2" id="projectLogo"><img alt="Jetspeed 2 Enterprise Portal" src="http://portals.apache.org/images/Jetspeed_blue_med.png"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+                	Last published: 23 April 2009
+                  | Doc for 2.1.3</div><div class="xright">
+        
+        <a href="../../../usersguide/index.html">Users Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../adminguide/index.html">Admin Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../deployguide/index.html">Deployers Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../devguide/index.html">Developers Guide</a>
+      </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuEssentials"><h5>Essentials</h5><ul><li class="none"><a href="../../../index.html">Welcome</a></li><li class="none"><a href="../../../features.html">Features</a></li><li class="none"><a href="../../../getting-started.html">Getting Started</a></li><li class="none"><a href="../../../demo.html">Jetspeed Online Demos</a></li></ul></div><div id="menuGet_Jetspeed-2_1_3"><h5>Get Jetspeed-2.1.3</h5><ul><li class="none"><a href="../../../download.html">Download</a></li><li class="none"><a href="../../../getting-started-installer.html">Installer Instructions</a></li><li class="none"><a href="../../../release-notes.html">Release Notes</a></li></ul></div><div id="menuDocumentation_Guides"><h5>Documentation Guides</h5><ul><li class="none"><a href="../../../usersguide/index.html">Users Guide</a></li><li class="none"><a href="../../../adminguide/index.html">Administrators Guide</a></li>
 <li class="none"><a href="../../../deployguide/index.html">Deployment Guide</a></li><li class="none"><a href="../../../devguide/index.html">Developers Guide</a></li><li class="none"><a href="../../../guide-migration.html">Migration Guide</a></li></ul></div><div id="menuAPIs"><h5>APIs</h5><ul><li class="none"><a href="../../../multiproject/jetspeed-api/apidocs/index.html">Jetspeed-2 Java API</a></li><li class="none"><a href="../../../devguide/guide-ajax-api.html">Jetspeed-2 AJAX API</a></li><li class="none"><a href="../../../devguide/j2-maven-plugin.html">Jetspeed-2 Maven-2 Plugin</a></li></ul></div><div id="menuTutorials"><h5>Tutorials</h5><ul><li class="none"><a href="../../../tutorials/maven-2/index.html">Jetspeed Tutorial - Maven-2 Custom Build</a></li><li class="none"><a href="../../../tutorials/ant/index.html">Jetspeed Tutorial - Ant Custom Build (incomplete)</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven1.html">Maven-
 1 Custom Build</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven2.html">Maven-2 Custom Build</a></li></ul></div><div id="menuAbout_Jetspeed-2"><h5>About Jetspeed-2</h5><ul><li class="none"><a href="../../../j1-users.html">For Jetspeed-1 Users</a></li><li class="none"><a href="../../../j1-migration.html">Jetspeed-1 Migration Guideline</a></li><li class="none"><a href="../../../supporting-projects.html">Supporting Projects</a></li><li class="none"><a href="../../../who-uses-j2.html">Who Uses J2?</a></li><li class="none"><a href="../../../portlets-community.html">Portlets Community</a></li><li class="none"><a href="../../../how-to-help.html">How to Help?</a></li></ul></div><div id="menuSupport"><h5>Support</h5><ul><li class="none"><a href="../../../mail-lists.html">Mailing List</a></li><li class="none"><a href="../../../issue-tracking.html">Bug Database</a></li><li class="none"><a href="http://wiki.apache.org/portals/Jetspeed2" c
 lass="externalLink" title="External Link">Wiki</a></li><li class="none"><a href="../../../faq.html">FAQ</a></li></ul></div><div id="menuTranslation"><h5>Translation</h5><ul><li class="none"><a href="http://jetspeed-japan.sourceforge.jp/jetspeed-2-trans/ja/index.html" class="externalLink" title="External Link">Japanese</a></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentation</h5><ul><li class="none"><a href="../../../index.html">About Jetspeed 2 Enterprise Portal</a></li><li class="collapsed"><a href="../../../project-info.html">Project Info</a></li><li class="collapsed"><a href="../../../maven-reports.html">Project Reports</a></li><li class="none"><a href="http://maven.apache.org/development-process.html" class="externalLink" title="External Link">Development Process</a></li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="../../../images/logos/maven-button-1.png"></img></a></div></div>
 <div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Jetspeed_Services"></a><h2>Jetspeed Services</h2><p>
+				This tutorial shows you how to use Jetspeed Services
+				from the Express Demo Portlet Application. Please note
+				that all edits, unless explicity specified otherwise,
+				are applied to the express-demo PA source tree. We will
+				learn how to:
+				<ul>
+					<li>add new roles</li>
+					<li>add new groups</li>
+					<li>register new users</li>
+					<li>manipulate pages</li>
+					<li>get a filtered list of portlets</li>
+				</ul>
+				using the RoleManager, GroupManager,
+				PortletAdministration, and Page Manager Jetspeed API
+				interfaces.
+			</p><p>
+				Lets get started by entering a new portlet in the
+				portlet.xml:
+			</p>
+    <div class="source"><pre>
+					
+&lt;portlet id="ServicesTutorialPortlet"&gt;    
+    &lt;description&gt;Tutorial for using Jetspeed Services, such as PortalAdministration, PageManager, Registry.&lt;/description&gt;
+    &lt;portlet-name&gt;ServicesTutorialPortlet&lt;/portlet-name&gt;
+    &lt;display-name&gt;Jetspeed Services Tutorial Portlet&lt;/display-name&gt;
+    &lt;portlet-class&gt;com.bluesunrise.portal.portlets.services.ServicesTutorialPortlet&lt;/portlet-class&gt;
+    &lt;init-param&gt;
+        &lt;description&gt;This parameter sets the template used in view mode.&lt;/description&gt;
+        &lt;name&gt;ViewPage&lt;/name&gt;
+        &lt;value&gt;/WEB-INF/view/services-tutorial.jsp&lt;/value&gt;
+    &lt;/init-param&gt;
+    &lt;init-param&gt;
+        &lt;description&gt;Comma-separated list of roles to create via Role Manager&lt;/description&gt;
+        &lt;name&gt;roles&lt;/name&gt;
+        &lt;value&gt;role1,role2,role3&lt;/value&gt;
+    &lt;/init-param&gt;    
+    &lt;init-param&gt;
+        &lt;description&gt;Comma-separated list of groups to create via Group Manager&lt;/description&gt;
+        &lt;name&gt;groups&lt;/name&gt;
+        &lt;value&gt;group1,group2,group3&lt;/value&gt;
+    &lt;/init-param&gt;    
+    &lt;init-param&gt;
+        &lt;description&gt;Comma-separated list of Users to create and Register via PortalAdminstration service&lt;/description&gt;
+        &lt;name&gt;users&lt;/name&gt;
+        &lt;value&gt;user1,user2,user3&lt;/value&gt;
+    &lt;/init-param&gt;        
+    &lt;init-param&gt;
+        &lt;description&gt;Comma-separated list of roles to assign to a new user&lt;/description&gt;
+        &lt;name&gt;registration-roles&lt;/name&gt;
+        &lt;value&gt;user,role1,role2&lt;/value&gt;
+    &lt;/init-param&gt;
+    &lt;init-param&gt;
+        &lt;description&gt;Comma-separated list of groups to assign to a new user&lt;/description&gt;
+        &lt;name&gt;registration-groups&lt;/name&gt;
+        &lt;value&gt;group1,group2&lt;/value&gt;
+    &lt;/init-param&gt;
+    &lt;init-param&gt;
+        &lt;name&gt;portlet-icon&lt;/name&gt;
+        &lt;value&gt;start-here.png&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;Services Tutorial&lt;/title&gt;
+        &lt;short-title&gt;Services&lt;/short-title&gt;
+        &lt;keywords&gt;tutorial,services,jetspeed-services&lt;/keywords&gt;
+    &lt;/portlet-info&gt;
+ &lt;/portlet&gt;	 
+	     
+			</pre></div>
+  <p>
+				Jetspeed has an extended descriptor for defining
+				extended portal features and services. Edit the
+				<b>jetspeed-portlet.xml</b>
+				found in
+				<i>src/webapp/WEB-INF/</i>
+				, and add the following services under the
+				&lt;js:services&gt; element. This tells Jetspeed what
+				services you require:
+			</p>
+    <div class="source"><pre>
+					
+        &lt;js:service name='GroupManager'/&gt;    
+        &lt;js:service name='PageManager'/&gt;    
+        &lt;js:service name='PortalAdministration'/&gt;        
+        &lt;js:service name='PortletRegistryComponent'/&gt;
+        &lt;js:service name='RoleManager'/&gt;	 
+        &lt;js:service name='UserManager'/&gt;        
+	     
+			</pre></div>
+  <p>
+				Create a new JSP page named
+				<b>services-tutorial.jsp</b>
+				in the
+				<i>src/webapp/WEB-INF/view/</i>
+				directory. Enter the following code:
+				
+    <div class="source"><pre>
+						
+&lt;%@ page language="java" session="true" %&gt;
+&lt;%@ page import="javax.portlet.*" %&gt;
+
+&lt;%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%&gt;
+&lt;%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %&gt;
+&lt;%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %&gt;
+
+&lt;portlet:defineObjects/&gt;
+
+&lt;portlet:actionURL var="newRolesAction"/&gt;
+&lt;br/&gt;
+&lt;div class='portlet-section-header'&gt;Services Tutorial Portlet&lt;/div&gt;
+
+&lt;form name="servicesTutorialForm" action="&lt;c:out value="${newRolesAction}"/&gt;" method="post"&gt;
+&lt;input type="submit" name='action' value="createRoles" class="portlet-form-button" /&gt;
+&lt;input type="submit" name='action' value="createGroups" class="portlet-form-button" /&gt;
+&lt;input type="submit" name='action' value="registerUsers" class="portlet-form-button" /&gt;
+&lt;input type="submit" name='action' value="modifyPages" class="portlet-form-button" /&gt;
+&lt;input type="submit" name='action' value="createSharedPages" class="portlet-form-button" /&gt;
+&lt;/form&gt;
+&lt;c:if test="${message != null}"&gt;
+&lt;div class='portlet-msg-info'&gt;&lt;c:out value="${message}"/&gt;&lt;/div&gt;
+&lt;/c:if&gt;
+&lt;c:if test="${errorMessage != null}"&gt;
+&lt;div class='portlet-msg-error'&gt;&lt;c:out value="${errorMessage}"/&gt;&lt;/div&gt;
+&lt;/c:if&gt;    
+	     
+				</pre></div>
+  
+			</p><p>
+				<ul>
+					<li>
+						Create a new package using Eclipse:
+						<b>com.bluesunrise.portal.portlets.services</b>
+					</li>
+					<li>
+						Create a portlet in the above package named
+						<b>ServicesTutorialPortlet.java</b>
+						extending
+						<b>GenericServletPortlet</b>
+						.
+					</li>
+					<li>
+						Override and implement the
+						<b>init</b>
+						,
+						<b>doView</b>
+						and
+						<b>processAction</b>
+						methods
+					</li>
+				</ul>
+			</p><p>Add the following data members to the portlet class:</p>
+    <div class="source"><pre>
+					
+    private PortalAdministration admin;
+    private PageManager pageManager;
+    private RoleManager roleManager;
+    private UserManager userManager;
+    private GroupManager groupManager;
+    protected PortletRegistry registry;
+
+    private List registrationRoles;
+    private List registrationGroups;
+    private List newRoles;
+    private List newGroups;
+    private List newUsers;    
+    
+			</pre></div>
+  <p>
+				Press
+				<b>Ctrl-Shift-O</b>
+				to resolve the two above class imports.
+			</p><p>
+				Enter the following code into the init(PortletConfig
+				config) method, replacing whats there:
+			</p>
+    <div class="source"><pre>
+				
+	    super.init();				
+        admin = (PortalAdministration) getPortletContext().getAttribute(
+				CommonPortletServices.CPS_PORTAL_ADMINISTRATION);
+		if (null == admin) {
+			throw new PortletException(
+					"Failed to find the Portal Administration on portlet initialization");
+		}
+		userManager = (UserManager) getPortletContext().getAttribute(
+				CommonPortletServices.CPS_USER_MANAGER_COMPONENT);
+		if (null == userManager) {
+			throw new PortletException(
+					"Failed to find the User Manager on portlet initialization");
+		}
+		roleManager = (RoleManager) getPortletContext().getAttribute(
+				CommonPortletServices.CPS_ROLE_MANAGER_COMPONENT);
+		if (null == roleManager) {
+			throw new PortletException(
+					"Failed to find the Role Manager on portlet initialization");
+		}
+		groupManager = (GroupManager) getPortletContext().getAttribute(
+				CommonPortletServices.CPS_GROUP_MANAGER_COMPONENT);
+		if (null == groupManager) {
+			throw new PortletException(
+					"Failed to find the Group Manager on portlet initialization");
+		}
+		pageManager = (PageManager) getPortletContext().getAttribute(
+				CommonPortletServices.CPS_PAGE_MANAGER_COMPONENT);
+		if (null == pageManager) {
+			throw new PortletException(
+					"Failed to find the Page Manager on portlet initialization");
+		}
+        registry = (PortletRegistry)getPortletContext().getAttribute(CommonPortletServices.CPS_REGISTRY_COMPONENT);
+        if (null == registry) {
+			throw new PortletException(
+					"Failed to find the Portlet Registry on portlet initialization");
+		}                
+        this.newRoles = getInitParameterList(config, "roles");
+        this.newGroups = getInitParameterList(config, "groups");
+        this.newUsers = getInitParameterList(config, "users");        
+        this.registrationRoles = getInitParameterList(config, "registration-roles");
+        this.registrationGroups = getInitParameterList(config, "registration-groups");	 
+	     
+			</pre></div>
+  <p>Add this helper function to the class:</p>
+    <div class="source"><pre>
+					
+    protected List getInitParameterList(PortletConfig config, String ipName)
+    {
+        String temp = config.getInitParameter(ipName);
+        if (temp == null) return new ArrayList();
+
+        String[] temps = temp.split("\\,");
+        for (int ix = 0; ix &lt; temps.length; ix++)
+            temps[ix] = temps[ix].trim();
+
+        return Arrays.asList(temps);
+    }
+	     
+			</pre></div>
+  <p>Write the doView method:</p>
+    <div class="source"><pre>
+					
+	public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException 
+	{
+		request.setAttribute("message", request.getParameter("message"));
+		request.setAttribute("errorMessage", request.getParameter("errorMessage"));
+		super.doView(request, response);
+	}	 
+	     
+			</pre></div>
+  <p>Write the portletAction method:</p>
+    <div class="source"><pre>
+					
+	public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException 
+	{
+		String action = request.getParameter("action");
+		try
+		{
+			if (action != null)
+			{			
+				if (action.equals("createRoles"))
+				{
+					String message = "Created " + createRoles() + " roles";
+					response.setRenderParameter("message", message);
+				}
+				else if (action.equals("createGroups"))
+				{
+					String message = "Created " + createGroups() + " groups";
+					response.setRenderParameter("message", message);
+				}
+				else if (action.equals("registerUsers"))
+				{
+					String message = "Registered " + registerUsers() + " users";
+					response.setRenderParameter("message", message);
+				}
+				else if (action.equals("modifyPages"))
+				{
+					String message = "Modified " + modifyPages() + " pages";
+					response.setRenderParameter("message", message);					
+				}
+				else if (action.equals("createSharedPages"))
+				{
+					String message = "Created " + createSharedPages() + " pages";
+					response.setRenderParameter("message", message);										
+				}
+			}
+		}
+		catch (Exception e)
+		{
+			response.setRenderParameter("serviceError", e.getMessage());
+			// TODO: proper logging
+			e.printStackTrace();
+		}
+	}	 
+	     
+			</pre></div>
+  <p>
+				Implement the undefined methods using the Jetspeed
+				Services...
+				<table class="bodyTable"><tr class="b"><th>method</th><th>purpose</th></tr><tr class="a"><td>createRoles</td><td>
+							using the roles init param, create new roles
+							with the RoleManager service. If the role
+							already exists, skip it.
+						</td></tr><tr class="b"><td>createGroups</td><td>
+							using the groups init param, create new
+							groups with the GroupManager service. If the
+							group already exists, skip it.
+						</td></tr><tr class="a"><td>registerUsers</td><td>
+							using the users init param, register new
+							users with the PortalAdministration service.
+							If the user already exists, skip it.
+						</td></tr><tr class="b"><td>modifyPages</td><td>
+							using the users init param, modify pages
+							with the PageManager service. If the page
+							doesnt exist, dont create it. Modifications:
+							for user1, create a 1 column collection of 1
+							portlet, for user2, create a 2 column
+							collection of 2 portlets, for user3 create a
+							3 column collection of 3 portets
+						</td></tr><tr class="a"><td>createSharedPages</td><td>
+							create a folder named /shared, create a page
+							name /friends.psml. add some portlets to the
+							page. grant public-view security constraint
+							to the folder
+						</td></tr></table>
+			</p><p>
+				<a href="../04/taglib.html">Previous</a>
+			</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 1999-2009, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file

Propchange: portals/site-live/jetspeed-2.1.3/tutorials/ant/05/jetspeed-service.html
------------------------------------------------------------------------------
    svn:executable = *

Added: portals/site-live/jetspeed-2.1.3/tutorials/ant/06/databases.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-2.1.3/tutorials/ant/06/databases.html?rev=1422709&view=auto
==============================================================================
--- portals/site-live/jetspeed-2.1.3/tutorials/ant/06/databases.html (added)
+++ portals/site-live/jetspeed-2.1.3/tutorials/ant/06/databases.html Sun Dec 16 22:54:22 2012
@@ -0,0 +1,69 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Jetspeed 2 Enterprise Portal - Portlet 101</title><style type="text/css" media="all">
+          @import url("../../../style/maven-base.css");
+          
+			    @import url("../../../style/maven-j2.css");@import url("../../../style/project.css");</style><link rel="stylesheet" href="../../../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a href="http://portals.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="http://portals.apache.org/images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-2" id="projectLogo"><img alt="Jetspeed 2 Enterprise Portal" src="http://portals.apache.org/images/Jetspeed_blue_med.png"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+                	Last published: 23 April 2009
+                  | Doc for 2.1.3</div><div class="xright">
+        
+        <a href="../../../usersguide/index.html">Users Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../adminguide/index.html">Admin Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../deployguide/index.html">Deployers Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../devguide/index.html">Developers Guide</a>
+      </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuEssentials"><h5>Essentials</h5><ul><li class="none"><a href="../../../index.html">Welcome</a></li><li class="none"><a href="../../../features.html">Features</a></li><li class="none"><a href="../../../getting-started.html">Getting Started</a></li><li class="none"><a href="../../../demo.html">Jetspeed Online Demos</a></li></ul></div><div id="menuGet_Jetspeed-2_1_3"><h5>Get Jetspeed-2.1.3</h5><ul><li class="none"><a href="../../../download.html">Download</a></li><li class="none"><a href="../../../getting-started-installer.html">Installer Instructions</a></li><li class="none"><a href="../../../release-notes.html">Release Notes</a></li></ul></div><div id="menuDocumentation_Guides"><h5>Documentation Guides</h5><ul><li class="none"><a href="../../../usersguide/index.html">Users Guide</a></li><li class="none"><a href="../../../adminguide/index.html">Administrators Guide</a></li>
 <li class="none"><a href="../../../deployguide/index.html">Deployment Guide</a></li><li class="none"><a href="../../../devguide/index.html">Developers Guide</a></li><li class="none"><a href="../../../guide-migration.html">Migration Guide</a></li></ul></div><div id="menuAPIs"><h5>APIs</h5><ul><li class="none"><a href="../../../multiproject/jetspeed-api/apidocs/index.html">Jetspeed-2 Java API</a></li><li class="none"><a href="../../../devguide/guide-ajax-api.html">Jetspeed-2 AJAX API</a></li><li class="none"><a href="../../../devguide/j2-maven-plugin.html">Jetspeed-2 Maven-2 Plugin</a></li></ul></div><div id="menuTutorials"><h5>Tutorials</h5><ul><li class="none"><a href="../../../tutorials/maven-2/index.html">Jetspeed Tutorial - Maven-2 Custom Build</a></li><li class="none"><a href="../../../tutorials/ant/index.html">Jetspeed Tutorial - Ant Custom Build (incomplete)</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven1.html">Maven-
 1 Custom Build</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven2.html">Maven-2 Custom Build</a></li></ul></div><div id="menuAbout_Jetspeed-2"><h5>About Jetspeed-2</h5><ul><li class="none"><a href="../../../j1-users.html">For Jetspeed-1 Users</a></li><li class="none"><a href="../../../j1-migration.html">Jetspeed-1 Migration Guideline</a></li><li class="none"><a href="../../../supporting-projects.html">Supporting Projects</a></li><li class="none"><a href="../../../who-uses-j2.html">Who Uses J2?</a></li><li class="none"><a href="../../../portlets-community.html">Portlets Community</a></li><li class="none"><a href="../../../how-to-help.html">How to Help?</a></li></ul></div><div id="menuSupport"><h5>Support</h5><ul><li class="none"><a href="../../../mail-lists.html">Mailing List</a></li><li class="none"><a href="../../../issue-tracking.html">Bug Database</a></li><li class="none"><a href="http://wiki.apache.org/portals/Jetspeed2" c
 lass="externalLink" title="External Link">Wiki</a></li><li class="none"><a href="../../../faq.html">FAQ</a></li></ul></div><div id="menuTranslation"><h5>Translation</h5><ul><li class="none"><a href="http://jetspeed-japan.sourceforge.jp/jetspeed-2-trans/ja/index.html" class="externalLink" title="External Link">Japanese</a></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentation</h5><ul><li class="none"><a href="../../../index.html">About Jetspeed 2 Enterprise Portal</a></li><li class="collapsed"><a href="../../../project-info.html">Project Info</a></li><li class="collapsed"><a href="../../../maven-reports.html">Project Reports</a></li><li class="none"><a href="http://maven.apache.org/development-process.html" class="externalLink" title="External Link">Development Process</a></li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="../../../images/logos/maven-button-1.png"></img></a></div></div>
 <div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Database_Alternatives"></a><h2>Database Alternatives</h2><p>
+				This section of the tutorial covers the different
+				databases that can be used.
+			</p><p>
+				In the tutorial we have been using Derby from Apache
+				which is easy to set up. You may want to use another
+				database or need to follow a corporate standard.
+				Jetspeed can accomodate a wide range of relational
+				databases including:
+			</p><ul>
+				<li>
+					<a href="www.mysql.com">MySQL</a>
+				</li>
+				<li>
+					<a href="www.oracle.com">Oracle</a>
+				</li>
+				<li>
+					<a href="http://hsqldb.org/" class="externalLink" title="External Link">
+						HSQLDB- Hypersonic Database
+					</a>
+				</li>
+				<li>
+					and
+					<a href="http://portals.apache.org/jetspeed-2/getting-started.html" class="externalLink" title="External Link">
+						others
+					</a>
+				</li>
+			</ul></div><div class="section"><a name="MySQL"></a><h2>MySQL</h2><p>
+				This section of the tutorial discusses how to change the
+				portal that was created in the tutorial so that it uses
+				the MySQL database.
+			</p></div><div class="section"><a name="Oracle"></a><h2>Oracle</h2><p>
+				This section of the tutorial discusses how to change the
+				portal that was created in the tutorial so that it uses
+				the MySQL database.
+			</p></div><div class="section"><a name="HSQLDB"></a><h2>HSQLDB</h2><p>
+				This section of the tutorial discusses how to change the
+				portal that was created in the tutorial so that it uses
+				the MySQL database.
+			</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 1999-2009, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file

Propchange: portals/site-live/jetspeed-2.1.3/tutorials/ant/06/databases.html
------------------------------------------------------------------------------
    svn:executable = *

Added: portals/site-live/jetspeed-2.1.3/tutorials/ant/06/documentation.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-2.1.3/tutorials/ant/06/documentation.html?rev=1422709&view=auto
==============================================================================
--- portals/site-live/jetspeed-2.1.3/tutorials/ant/06/documentation.html (added)
+++ portals/site-live/jetspeed-2.1.3/tutorials/ant/06/documentation.html Sun Dec 16 22:54:22 2012
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Jetspeed 2 Enterprise Portal - Portlet 101</title><style type="text/css" media="all">
+          @import url("../../../style/maven-base.css");
+          
+			    @import url("../../../style/maven-j2.css");@import url("../../../style/project.css");</style><link rel="stylesheet" href="../../../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a href="http://portals.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="http://portals.apache.org/images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-2" id="projectLogo"><img alt="Jetspeed 2 Enterprise Portal" src="http://portals.apache.org/images/Jetspeed_blue_med.png"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+                	Last published: 23 April 2009
+                  | Doc for 2.1.3</div><div class="xright">
+        
+        <a href="../../../usersguide/index.html">Users Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../adminguide/index.html">Admin Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../deployguide/index.html">Deployers Guide</a>
+      
+        
+          
+            <span class="separator">|</span>
+          
+        
+        <a href="../../../devguide/index.html">Developers Guide</a>
+      </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuEssentials"><h5>Essentials</h5><ul><li class="none"><a href="../../../index.html">Welcome</a></li><li class="none"><a href="../../../features.html">Features</a></li><li class="none"><a href="../../../getting-started.html">Getting Started</a></li><li class="none"><a href="../../../demo.html">Jetspeed Online Demos</a></li></ul></div><div id="menuGet_Jetspeed-2_1_3"><h5>Get Jetspeed-2.1.3</h5><ul><li class="none"><a href="../../../download.html">Download</a></li><li class="none"><a href="../../../getting-started-installer.html">Installer Instructions</a></li><li class="none"><a href="../../../release-notes.html">Release Notes</a></li></ul></div><div id="menuDocumentation_Guides"><h5>Documentation Guides</h5><ul><li class="none"><a href="../../../usersguide/index.html">Users Guide</a></li><li class="none"><a href="../../../adminguide/index.html">Administrators Guide</a></li>
 <li class="none"><a href="../../../deployguide/index.html">Deployment Guide</a></li><li class="none"><a href="../../../devguide/index.html">Developers Guide</a></li><li class="none"><a href="../../../guide-migration.html">Migration Guide</a></li></ul></div><div id="menuAPIs"><h5>APIs</h5><ul><li class="none"><a href="../../../multiproject/jetspeed-api/apidocs/index.html">Jetspeed-2 Java API</a></li><li class="none"><a href="../../../devguide/guide-ajax-api.html">Jetspeed-2 AJAX API</a></li><li class="none"><a href="../../../devguide/j2-maven-plugin.html">Jetspeed-2 Maven-2 Plugin</a></li></ul></div><div id="menuTutorials"><h5>Tutorials</h5><ul><li class="none"><a href="../../../tutorials/maven-2/index.html">Jetspeed Tutorial - Maven-2 Custom Build</a></li><li class="none"><a href="../../../tutorials/ant/index.html">Jetspeed Tutorial - Ant Custom Build (incomplete)</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven1.html">Maven-
 1 Custom Build</a></li><li class="none"><a href="../../../tutorials/stepbystep/guide-building-custom-portal-maven2.html">Maven-2 Custom Build</a></li></ul></div><div id="menuAbout_Jetspeed-2"><h5>About Jetspeed-2</h5><ul><li class="none"><a href="../../../j1-users.html">For Jetspeed-1 Users</a></li><li class="none"><a href="../../../j1-migration.html">Jetspeed-1 Migration Guideline</a></li><li class="none"><a href="../../../supporting-projects.html">Supporting Projects</a></li><li class="none"><a href="../../../who-uses-j2.html">Who Uses J2?</a></li><li class="none"><a href="../../../portlets-community.html">Portlets Community</a></li><li class="none"><a href="../../../how-to-help.html">How to Help?</a></li></ul></div><div id="menuSupport"><h5>Support</h5><ul><li class="none"><a href="../../../mail-lists.html">Mailing List</a></li><li class="none"><a href="../../../issue-tracking.html">Bug Database</a></li><li class="none"><a href="http://wiki.apache.org/portals/Jetspeed2" c
 lass="externalLink" title="External Link">Wiki</a></li><li class="none"><a href="../../../faq.html">FAQ</a></li></ul></div><div id="menuTranslation"><h5>Translation</h5><ul><li class="none"><a href="http://jetspeed-japan.sourceforge.jp/jetspeed-2-trans/ja/index.html" class="externalLink" title="External Link">Japanese</a></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentation</h5><ul><li class="none"><a href="../../../index.html">About Jetspeed 2 Enterprise Portal</a></li><li class="collapsed"><a href="../../../project-info.html">Project Info</a></li><li class="collapsed"><a href="../../../maven-reports.html">Project Reports</a></li><li class="none"><a href="http://maven.apache.org/development-process.html" class="externalLink" title="External Link">Development Process</a></li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="../../../images/logos/maven-button-1.png"></img></a></div></div>
 <div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Documentation"></a><h2>Documentation</h2><p>
+				Jetspeed includes
+				<a href="http://portals.apache.org/jetspeed-2/" class="externalLink" title="External Link">
+					documentation
+				</a>
+				on the general operation of Jetspeed as well as
+				<a href="http://portals.apache.org/jetspeed-2/guides/index.html" class="externalLink" title="External Link">
+					guides or HOW-TOs on various topics.
+				</a>
+			</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 1999-2009, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file

Propchange: portals/site-live/jetspeed-2.1.3/tutorials/ant/06/documentation.html
------------------------------------------------------------------------------
    svn:executable = *