Anonymous avatar Anonymous committed 43e3a7a

ok, this is really annoying -- fixed all the formatting issues

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@430 573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (171)

src/config-browser/com/opensymphony/webwork/config_browser/ConfigurationHelper.java

 package com.opensymphony.webwork.config_browser;
 
+import com.opensymphony.xwork.config.ConfigurationManager;
+import com.opensymphony.xwork.config.entities.ActionConfig;
+
 import java.util.Collections;
 import java.util.Map;
 import java.util.Set;
 
-import com.opensymphony.xwork.config.ConfigurationManager;
-import com.opensymphony.xwork.config.entities.ActionConfig;
-
 /**
  * ConfigurationHelper
+ *
  * @author Jason Carreira
- * Created Aug 11, 2003 8:41:17 PM
+ *         Created Aug 11, 2003 8:41:17 PM
  */
 public class ConfigurationHelper {
 

src/etc/actions.xsl

   -->
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
-<!--
-<xsl:output method="text"/>
--->
+    <!--
+    <xsl:output method="text"/>
+    -->
 
-<!--
-  -
-  -->
-<xsl:template match="/">
-<?xml-stylesheet type="text/xsl" href="http://www.indigoegg.com/webwork/webwork.xsl"?>
+    <!--
+      -
+      -->
+    <xsl:template match="/">
+        <?xml-stylesheet type="text/xsl" href="http://www.indigoegg.com/webwork/webwork.xsl"?>
 
-<xwork>
-  <package name="default">
-    <result-types>
-      <result-type name="dispatcher" class="com.opensymphony.webwork.dispatcher.ServletDispatcherResult"/>
-      <result-type name="redirect" class="com.opensymphony.webwork.dispatcher.ServletRedirectResult"/>
-      <result-type name="chain" class="com.opensymphony.xwork.ActionChainResult"/>
-      <result-type name="velocity" class="com.opensymphony.xwork.VelocityResult"/>
-    </result-types>
+        <xwork>
+            <package name="default">
+                <result-types>
+                    <result-type name="dispatcher" class="com.opensymphony.webwork.dispatcher.ServletDispatcherResult"/>
+                    <result-type name="redirect" class="com.opensymphony.webwork.dispatcher.ServletRedirectResult"/>
+                    <result-type name="chain" class="com.opensymphony.xwork.ActionChainResult"/>
+                    <result-type name="velocity" class="com.opensymphony.xwork.VelocityResult"/>
+                </result-types>
 
-    <interceptors>
-      <interceptor name="timer" class="com.opensymphony.xwork.interceptor.TimerInterceptor"/>
-      <interceptor name="logger" class="com.opensymphony.xwork.interceptor.LoggingInterceptor"/>
-      <interceptor name="params" class="com.opensymphony.xwork.interceptor.ParametersInterceptor"/> 
-      <interceptor-stack name="defaultStack">
-        <interceptor-ref name="timer"/>
-        <interceptor-ref name="logger"/>
-        <interceptor-ref name="params"/>
-      </interceptor-stack>
-    </interceptors>
+                <interceptors>
+                    <interceptor name="timer" class="com.opensymphony.xwork.interceptor.TimerInterceptor"/>
+                    <interceptor name="logger" class="com.opensymphony.xwork.interceptor.LoggingInterceptor"/>
+                    <interceptor name="params" class="com.opensymphony.xwork.interceptor.ParametersInterceptor"/>
+                    <interceptor-stack name="defaultStack">
+                        <interceptor-ref name="timer"/>
+                        <interceptor-ref name="logger"/>
+                        <interceptor-ref name="params"/>
+                    </interceptor-stack>
+                </interceptors>
 
-    <xsl:for-each select="actions/action">
-      <xsl:variable name="class"><xsl:value-of select="@name"/></xsl:variable>
-      <xsl:if test="@alias">
-        <xsl:apply-templates select=".">
-          <xsl:with-param name="name" select="@alias"/>
-        </xsl:apply-templates>
-      </xsl:if>
-      <xsl:apply-templates select=".">
-        <xsl:with-param name="name" select="@name"/>
-        <xsl:with-param name="isalias">true</xsl:with-param>
-      </xsl:apply-templates>
-      <xsl:for-each select="command">
-        <xsl:apply-templates select=".">
-          <xsl:with-param name="class" select="$class"/>
-          <xsl:with-param name="isalias">false</xsl:with-param>
-        </xsl:apply-templates>
-      </xsl:for-each>
-    </xsl:for-each>
-  </package>
-</xwork>
-</xsl:template>
+                <xsl:for-each select="actions/action">
+                    <xsl:variable name="class">
+                        <xsl:value-of select="@name"/>
+                    </xsl:variable>
+                    <xsl:if test="@alias">
+                        <xsl:apply-templates select=".">
+                            <xsl:with-param name="name" select="@alias"/>
+                        </xsl:apply-templates>
+                    </xsl:if>
+                    <xsl:apply-templates select=".">
+                        <xsl:with-param name="name" select="@name"/>
+                        <xsl:with-param name="isalias">true</xsl:with-param>
+                    </xsl:apply-templates>
+                    <xsl:for-each select="command">
+                        <xsl:apply-templates select=".">
+                            <xsl:with-param name="class" select="$class"/>
+                            <xsl:with-param name="isalias">false</xsl:with-param>
+                        </xsl:apply-templates>
+                    </xsl:for-each>
+                </xsl:for-each>
+            </package>
+        </xwork>
+    </xsl:template>
 
-<xsl:template match="action">
-<xsl:param name="name">default</xsl:param>
-<xsl:param name="isalias">default</xsl:param>
-    <action>
-      <xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
-      <xsl:attribute name="class"><xsl:value-of select="@name"/></xsl:attribute>
-      <xsl:for-each select="view">
-        <xsl:apply-templates select="."/>
-      </xsl:for-each>
-      <xsl:if test="$isalias = 'false'">
-        <xsl:for-each select="command">
-          <xsl:apply-templates select=".">
-            <xsl:with-param name="name" select="$name"/>
-          </xsl:apply-templates>
-        </xsl:for-each>
-      </xsl:if>
-      <interceptor-ref name="defaultStack"/>
-    </action>
-</xsl:template>
+    <xsl:template match="action">
+        <xsl:param name="name">default</xsl:param>
+        <xsl:param name="isalias">default</xsl:param>
+        <action>
+            <xsl:attribute name="name">
+                <xsl:value-of select="$name"/>
+            </xsl:attribute>
+            <xsl:attribute name="class">
+                <xsl:value-of select="@name"/>
+            </xsl:attribute>
+            <xsl:for-each select="view">
+                <xsl:apply-templates select="."/>
+            </xsl:for-each>
+            <xsl:if test="$isalias = 'false'">
+                <xsl:for-each select="command">
+                    <xsl:apply-templates select=".">
+                        <xsl:with-param name="name" select="$name"/>
+                    </xsl:apply-templates>
+                </xsl:for-each>
+            </xsl:if>
+            <interceptor-ref name="defaultStack"/>
+        </action>
+    </xsl:template>
 
-<xsl:template match="view">
-  <xsl:choose>
-    <xsl:when test="contains(., '.jsp')">
-      <result type="dispatcher">
-        <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
-        <param name="location"><xsl:value-of select="."/></param>
-      </result>
-    </xsl:when>
-    <xsl:when test="contains(., '.vm')">
-      <result type="velocity">
-        <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
-        <param name="location"><xsl:value-of select="."/></param>
-      </result>
-    </xsl:when>
-    <xsl:otherwise>
-      <result type="chain">
-        <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
-        <param name="actionName"><xsl:value-of select="."/></param>
-      </result>
-    </xsl:otherwise>
-  </xsl:choose>
-</xsl:template>
+    <xsl:template match="view">
+        <xsl:choose>
+            <xsl:when test="contains(., '.jsp')">
+                <result type="dispatcher">
+                    <xsl:attribute name="name">
+                        <xsl:value-of select="@name"/>
+                    </xsl:attribute>
+                    <param name="location">
+                        <xsl:value-of select="."/>
+                    </param>
+                </result>
+            </xsl:when>
+            <xsl:when test="contains(., '.vm')">
+                <result type="velocity">
+                    <xsl:attribute name="name">
+                        <xsl:value-of select="@name"/>
+                    </xsl:attribute>
+                    <param name="location">
+                        <xsl:value-of select="."/>
+                    </param>
+                </result>
+            </xsl:when>
+            <xsl:otherwise>
+                <result type="chain">
+                    <xsl:attribute name="name">
+                        <xsl:value-of select="@name"/>
+                    </xsl:attribute>
+                    <param name="actionName">
+                        <xsl:value-of select="."/>
+                    </param>
+                </result>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
 
-<xsl:template match="command">
-<xsl:param name="class">default</xsl:param>
-    <action>
-      <xsl:if test="not(@alias)">
-        <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
-      </xsl:if>
-      <xsl:if test="@alias">
-        <xsl:attribute name="name"><xsl:value-of select="@alias"/></xsl:attribute>
-      </xsl:if>
-      <xsl:if test="@method">
-        <xsl:attribute name="method"><xsl:value-of select="@method"/></xsl:attribute>
-      </xsl:if>
-      <xsl:attribute name="class"><xsl:value-of select="$class"/></xsl:attribute>
-      <xsl:for-each select="view">
-        <xsl:apply-templates select="."/>
-      </xsl:for-each>
-      <xsl:for-each select="command">
-        <xsl:apply-templates select="."/>
-      </xsl:for-each>
-      <interceptor-ref name="defaultStack"/>
-    </action>
-</xsl:template>
+    <xsl:template match="command">
+        <xsl:param name="class">default</xsl:param>
+        <action>
+            <xsl:if test="not(@alias)">
+                <xsl:attribute name="name">
+                    <xsl:value-of select="@name"/>
+                </xsl:attribute>
+            </xsl:if>
+            <xsl:if test="@alias">
+                <xsl:attribute name="name">
+                    <xsl:value-of select="@alias"/>
+                </xsl:attribute>
+            </xsl:if>
+            <xsl:if test="@method">
+                <xsl:attribute name="method">
+                    <xsl:value-of select="@method"/>
+                </xsl:attribute>
+            </xsl:if>
+            <xsl:attribute name="class">
+                <xsl:value-of select="$class"/>
+            </xsl:attribute>
+            <xsl:for-each select="view">
+                <xsl:apply-templates select="."/>
+            </xsl:for-each>
+            <xsl:for-each select="command">
+                <xsl:apply-templates select="."/>
+            </xsl:for-each>
+            <interceptor-ref name="defaultStack"/>
+        </action>
+    </xsl:template>
 
 
 </xsl:stylesheet>

src/etc/jalopy.xml

                 </generate>
                 <parseComments>false</parseComments>
                 <tags>
-                    <in-line />
-                    <standard />
+                    <in-line/>
+                    <standard/>
                 </tags>
                 <templates>
                     <method>
                 </text>
             </separator>
         </comments>
-        <environment />
+        <environment/>
         <footer>
-            <keys />
+            <keys/>
             <smartMode>0</smartMode>
             <use>false</use>
         </footer>

src/etc/xwork.xsl

   -->
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
-<xsl:output method="html"/>
+    <xsl:output method="html"/>
 
-<!--
-  -
-  -->
-<xsl:template match="/">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>XWork Package Description</title>
-    <link rel="stylesheet" type="text/css" href="http://www.indigoegg.com/webwork/tag-style.css" />
-</head>
-<body>
-<h2>XWork Package Description</h2>
-<h3>Quick Link to Packages</h3>
-<ul>
-  <xsl:for-each select="xwork/package">
-    <li><a><xsl:attribute name="href">#<xsl:value-of select="@name"/></xsl:attribute><xsl:value-of select="@name"/></a></li>
-  </xsl:for-each>
-</ul>
-
-<xsl:for-each select="xwork">
-  <xsl:apply-templates/>
-</xsl:for-each>
-
-</body>
-</html>
-</xsl:template>
-
-<xsl:template match="package">
-<div class="bannerrow">
-  <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
-  <h4 class="title">
-    Package: <xsl:value-of select="@name"/>
-    <xsl:if test="@extends">
-      <xsl:text> </xsl:text>
-      <em>(extends <xsl:value-of select="@extends"/>)</em>
-    </xsl:if>
-  </h4>
-  <xsl:if test="@namespace">
-    Namespace: <em><xsl:value-of select="@namespace"/></em><br/>
-  </xsl:if>
-</div>
-
-<div class="content">
-  <xsl:if test="description">
-    <div class="subheader">Description</div>
-    <div class="content">
-      <p><xsl:value-of select="description"/></p>
-    </div>
-  </xsl:if>
-
-  <xsl:if test="result-types">
-    <div class="subheader">Result Types</div>
-    <div class="content">
-      <table cellpadding="4" cellspacing="2" border="0" width="90%">
-      <tr>
-        <th><div align="left">Name</div></th>
-        <th><div align="left">Class</div></th>
-      </tr>
-      <xsl:for-each select="result-types/result-type">
-        <xsl:sort select="@name" data-type="text" order="ascending"/>
-        <xsl:variable name="rownum"><xsl:value-of select="position()"/></xsl:variable>
-        <xsl:apply-templates select=".">
-          <xsl:with-param name="rownum" select="$rownum"/>
-        </xsl:apply-templates>
-      </xsl:for-each>
-      </table>
-    </div>
-  </xsl:if>
-
-  <xsl:if test="interceptors">
-    <div class="subheader">Interceptors</div>
-    <div class="content">
-      <table cellpadding="4" cellspacing="2" border="0" width="90%">
-      <tr>
-        <th><div align="left">Name</div></th>
-        <th><div align="left">Class or References</div></th>
-      </tr>
-      <xsl:for-each select="interceptors/*">
-        <xsl:sort select="@name" data-type="text" order="ascending"/>
-        <xsl:variable name="rownum"><xsl:value-of select="position()"/></xsl:variable>
-        <xsl:apply-templates select=".">
-          <xsl:with-param name="rownum" select="$rownum"/>
-        </xsl:apply-templates>
-      </xsl:for-each>
-      </table>
-    </div>
-  </xsl:if>
-
-  <xsl:if test="global-results">
-    <div class="subheader">Global Results</div>
-    <div class="content">
-      <table cellpadding="4" cellspacing="2" border="0" width="90%">
-      <tr>
-        <th><div align="left">Name</div></th>
-        <th><div align="left">Type</div></th>
-        <th><div align="left">Param Name</div></th>
-        <th><div align="left">Param Value</div></th>
-      </tr>
-      <xsl:for-each select="global-results/result">
-        <xsl:sort select="@name" data-type="text" order="ascending"/>
-        <xsl:variable name="rownum"><xsl:value-of select="position()"/></xsl:variable>
-        <xsl:apply-templates select=".">
-          <xsl:with-param name="rownum" select="$rownum"/>
-        </xsl:apply-templates>
-      </xsl:for-each>
-      </table>
-    </div>
-  </xsl:if>
-
-  <xsl:if test="action">
-    <xsl:variable name="namespace"><xsl:value-of select="@namespace"/></xsl:variable>
-    <div class="subheader">URLs in this package</div>
-    <ul>
-      <xsl:for-each select="action">
-        <xsl:sort select="@name" data-type="text" order="ascending"/>
-        <li>
-          <a><xsl:attribute name="href">#action_<xsl:value-of select="$namespace"/><xsl:value-of select="@name"/></xsl:attribute>
-            /<xsl:value-of select="$namespace"/><strong><xsl:value-of select="@name"/></strong>.action
-          </a>
-        </li>
-      </xsl:for-each>
-    </ul>
-    
-    <xsl:for-each select="action">
-      <xsl:sort select="@name" data-type="text" order="ascending"/>
-      <xsl:apply-templates select=".">
-        <xsl:with-param name="namespace" select="$namespace"/>
-      </xsl:apply-templates>
-    </xsl:for-each>
-  </xsl:if>
-</div>
-
-<p/>
-
-</xsl:template>
+    <!--
+      -
+      -->
+    <xsl:template match="/">
+        <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+            <head>
+                <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+                <title>XWork Package Description</title>
+                <link rel="stylesheet" type="text/css" href="http://www.indigoegg.com/webwork/tag-style.css"/>
+            </head>
+            <body>
+                <h2>XWork Package Description</h2>
+                <h3>Quick Link to Packages</h3>
+                <ul>
+                    <xsl:for-each select="xwork/package">
+                        <li>
+                            <a>
+                                <xsl:attribute name="href">#
+                                    <xsl:value-of select="@name"/>
+                                </xsl:attribute>
+                                <xsl:value-of select="@name"/>
+                            </a>
+                        </li>
+                    </xsl:for-each>
+                </ul>
 
-<!--
-  -
-  -->
-<xsl:template match="result-type">
-<xsl:param name="rownum">1</xsl:param>
-<tr>
-  <td>
-    <xsl:if test="$rownum mod 2 = 0">
-      <xsl:attribute name="class">altrow</xsl:attribute>
-    </xsl:if>
-    <xsl:value-of select="@name"/>
-  </td>
-  <td>
-    <xsl:if test="$rownum mod 2 = 0">
-      <xsl:attribute name="class">altrow</xsl:attribute>
-    </xsl:if>
-    <xsl:value-of select="@class"/>
-  </td>
-</tr>
-</xsl:template>
+                <xsl:for-each select="xwork">
+                    <xsl:apply-templates/>
+                </xsl:for-each>
 
+            </body>
+        </html>
+    </xsl:template>
 
-<!--
-  -
-  -->
-<xsl:template match="result">
-<xsl:param name="rownum">1</xsl:param>
-<tr>
-  <td valign="top" nowrap="nowrap">
-    <xsl:if test="$rownum mod 2 = 0">
-      <xsl:attribute name="class">altrow</xsl:attribute>
-    </xsl:if>
-    <xsl:value-of select="@name"/>
-  </td>
-  <td valign="top" nowrap="nowrap">
-    <xsl:if test="$rownum mod 2 = 0">
-      <xsl:attribute name="class">altrow</xsl:attribute>
-    </xsl:if>
-    <xsl:value-of select="@type"/>
-  </td>
-  <td valign="top" nowrap="nowrap">
-    <xsl:if test="$rownum mod 2 = 0">
-      <xsl:attribute name="class">altrow</xsl:attribute>
-    </xsl:if>
-    <xsl:for-each select="param">
-      <xsl:value-of select="@name"/><br/>
-    </xsl:for-each>
-  </td>
-  <td valign="top" nowrap="nowrap">
-    <xsl:if test="$rownum mod 2 = 0">
-      <xsl:attribute name="class">altrow</xsl:attribute>
-    </xsl:if>
-    <xsl:for-each select="param">
-      <xsl:value-of select="."/><br/>
-    </xsl:for-each>
-  </td>
-</tr>
-</xsl:template>
+    <xsl:template match="package">
+        <div class="bannerrow">
+            <a>
+                <xsl:attribute name="name">
+                    <xsl:value-of select="@name"/>
+                </xsl:attribute>
+            </a>
+            <h4 class="title">
+    Package:
+                <xsl:value-of select="@name"/>
+                <xsl:if test="@extends">
+                    <xsl:text> </xsl:text>
+                    <em>(extends
+                        <xsl:value-of select="@extends"/>)
+                    </em>
+                </xsl:if>
+            </h4>
+            <xsl:if test="@namespace">
+    Namespace:
+                <em>
+                    <xsl:value-of select="@namespace"/>
+                </em>
+                <br/>
+            </xsl:if>
+        </div>
 
+        <div class="content">
+            <xsl:if test="description">
+                <div class="subheader">Description</div>
+                <div class="content">
+                    <p>
+                        <xsl:value-of select="description"/>
+                    </p>
+                </div>
+            </xsl:if>
 
-<!--
-  -
-  -->
-<xsl:template match="interceptor">
-<xsl:param name="rownum">1</xsl:param>
-<tr>
-  <td>
-    <xsl:if test="$rownum mod 2 = 0">
-      <xsl:attribute name="class">altrow</xsl:attribute>
-    </xsl:if>
-
-    <a><xsl:attribute name="name">ref_<xsl:value-of select="@name"/></xsl:attribute></a>
-    <xsl:if test="$rownum mod 2 = 0">
-      <xsl:attribute name="class">altrow</xsl:attribute>
-    </xsl:if>
-    <xsl:value-of select="@name"/>
-  </td>
-
-  <td>
-    <xsl:if test="$rownum mod 2 = 0">
-      <xsl:attribute name="class">altrow</xsl:attribute>
-    </xsl:if>
-
-    <xsl:value-of select="@class"/>
-  </td>
-</tr>
-</xsl:template>
+            <xsl:if test="result-types">
+                <div class="subheader">Result Types</div>
+                <div class="content">
+                    <table cellpadding="4" cellspacing="2" border="0" width="90%">
+                        <tr>
+                            <th>
+                                <div align="left">Name</div>
+                            </th>
+                            <th>
+                                <div align="left">Class</div>
+                            </th>
+                        </tr>
+                        <xsl:for-each select="result-types/result-type">
+                            <xsl:sort select="@name" data-type="text" order="ascending"/>
+                            <xsl:variable name="rownum">
+                                <xsl:value-of select="position()"/>
+                            </xsl:variable>
+                            <xsl:apply-templates select=".">
+                                <xsl:with-param name="rownum" select="$rownum"/>
+                            </xsl:apply-templates>
+                        </xsl:for-each>
+                    </table>
+                </div>
+            </xsl:if>
 
+            <xsl:if test="interceptors">
+                <div class="subheader">Interceptors</div>
+                <div class="content">
+                    <table cellpadding="4" cellspacing="2" border="0" width="90%">
+                        <tr>
+                            <th>
+                                <div align="left">Name</div>
+                            </th>
+                            <th>
+                                <div align="left">Class or References</div>
+                            </th>
+                        </tr>
+                        <xsl:for-each select="interceptors/*">
+                            <xsl:sort select="@name" data-type="text" order="ascending"/>
+                            <xsl:variable name="rownum">
+                                <xsl:value-of select="position()"/>
+                            </xsl:variable>
+                            <xsl:apply-templates select=".">
+                                <xsl:with-param name="rownum" select="$rownum"/>
+                            </xsl:apply-templates>
+                        </xsl:for-each>
+                    </table>
+                </div>
+            </xsl:if>
 
-<!--
-  -
-  -->
-<xsl:template match="interceptor-stack">
-<xsl:param name="rownum">1</xsl:param>
-<tr>
-  <td valign="top">
-    <xsl:if test="$rownum mod 2 = 0">
-      <xsl:attribute name="class">altrow</xsl:attribute>
-    </xsl:if>
-
-    <a><xsl:attribute name="name">ref_<xsl:value-of select="@name"/></xsl:attribute></a>
-    <xsl:if test="$rownum mod 2 = 0">
-      <xsl:attribute name="class">altrow</xsl:attribute>
-    </xsl:if>
-    <xsl:value-of select="@name"/>
-  </td>
-
-  <td valign="top">
-    <xsl:if test="$rownum mod 2 = 0">
-      <xsl:attribute name="class">altrow</xsl:attribute>
-    </xsl:if>
-
-    <xsl:for-each select="interceptor-ref">
-        <xsl:value-of select="position()"/>. 
-        <a><xsl:attribute name="href">#ref_<xsl:value-of select="@name"/></xsl:attribute><xsl:value-of select="@name"/></a><br/>
-    </xsl:for-each>
-  </td>
-</tr>
-</xsl:template>
-
-<xsl:template match="action">
-<xsl:param name="namespace">default/</xsl:param>
-
-    <a><xsl:attribute name="name">action_<xsl:value-of select="$namespace"/><xsl:value-of select="@name"/></xsl:attribute></a>
-    <div class="subheader">Action: <xsl:value-of select="@name"/></div>
-    <div class="content">
-        <table cellpadding="4" cellspacing="2" border="0" width="90%">
-          <tr>
-            <td valign="top" class="rowtitle">Class:</td>
-            <td valign="top"><xsl:value-of select="@class"/></td>
-          </tr>
-          <tr>
-            <td valign="top" class="rowtitle">Interceptor Stack:</td>
-            <td valign="top" class="altrow">
-              <xsl:for-each select="interceptor-ref">
-                <xsl:value-of select="position()"/>. 
-                <a><xsl:attribute name="href">#ref_<xsl:value-of select="@name"/></xsl:attribute><xsl:value-of select="@name"/></a><br/>
-              </xsl:for-each>
+            <xsl:if test="global-results">
+                <div class="subheader">Global Results</div>
+                <div class="content">
+                    <table cellpadding="4" cellspacing="2" border="0" width="90%">
+                        <tr>
+                            <th>
+                                <div align="left">Name</div>
+                            </th>
+                            <th>
+                                <div align="left">Type</div>
+                            </th>
+                            <th>
+                                <div align="left">Param Name</div>
+                            </th>
+                            <th>
+                                <div align="left">Param Value</div>
+                            </th>
+                        </tr>
+                        <xsl:for-each select="global-results/result">
+                            <xsl:sort select="@name" data-type="text" order="ascending"/>
+                            <xsl:variable name="rownum">
+                                <xsl:value-of select="position()"/>
+                            </xsl:variable>
+                            <xsl:apply-templates select=".">
+                                <xsl:with-param name="rownum" select="$rownum"/>
+                            </xsl:apply-templates>
+                        </xsl:for-each>
+                    </table>
+                </div>
+            </xsl:if>
+
+            <xsl:if test="action">
+                <xsl:variable name="namespace">
+                    <xsl:value-of select="@namespace"/>
+                </xsl:variable>
+                <div class="subheader">URLs in this package</div>
+                <ul>
+                    <xsl:for-each select="action">
+                        <xsl:sort select="@name" data-type="text" order="ascending"/>
+                        <li>
+                            <a>
+                                <xsl:attribute name="href">#action_
+                                    <xsl:value-of select="$namespace"/>
+                                    <xsl:value-of select="@name"/>
+                                </xsl:attribute>
+            /
+                                <xsl:value-of select="$namespace"/>
+                                <strong>
+                                    <xsl:value-of select="@name"/>
+                                </strong>.action
+                            </a>
+                        </li>
+                    </xsl:for-each>
+                </ul>
+
+                <xsl:for-each select="action">
+                    <xsl:sort select="@name" data-type="text" order="ascending"/>
+                    <xsl:apply-templates select=".">
+                        <xsl:with-param name="namespace" select="$namespace"/>
+                    </xsl:apply-templates>
+                </xsl:for-each>
+            </xsl:if>
+        </div>
+
+        <p/>
+
+    </xsl:template>
+
+    <!--
+      -
+      -->
+    <xsl:template match="result-type">
+        <xsl:param name="rownum">1</xsl:param>
+        <tr>
+            <td>
+                <xsl:if test="$rownum mod 2 = 0">
+                    <xsl:attribute name="class">altrow</xsl:attribute>
+                </xsl:if>
+                <xsl:value-of select="@name"/>
             </td>
-          </tr>
-          <xsl:if test="result">
-          <tr>
-            <td valign="top" class="rowtitle">Results:</td>
-            <td valign="top" class="altrow">
-              <table width="100%">
-                <tr>
-                  <th><div align="left">Name</div></th>
-                  <th><div align="left">Type</div></th>
-                  <th><div align="left">Param Name</div></th>
-                  <th><div align="left">Param Value</div></th>
-                </tr>
-                <xsl:for-each select="result">
-                  <xsl:variable name="rownum"><xsl:value-of select="position()"/></xsl:variable>
-                  <xsl:apply-templates select="."/>
+            <td>
+                <xsl:if test="$rownum mod 2 = 0">
+                    <xsl:attribute name="class">altrow</xsl:attribute>
+                </xsl:if>
+                <xsl:value-of select="@class"/>
+            </td>
+        </tr>
+    </xsl:template>
+
+
+    <!--
+      -
+      -->
+    <xsl:template match="result">
+        <xsl:param name="rownum">1</xsl:param>
+        <tr>
+            <td valign="top" nowrap="nowrap">
+                <xsl:if test="$rownum mod 2 = 0">
+                    <xsl:attribute name="class">altrow</xsl:attribute>
+                </xsl:if>
+                <xsl:value-of select="@name"/>
+            </td>
+            <td valign="top" nowrap="nowrap">
+                <xsl:if test="$rownum mod 2 = 0">
+                    <xsl:attribute name="class">altrow</xsl:attribute>
+                </xsl:if>
+                <xsl:value-of select="@type"/>
+            </td>
+            <td valign="top" nowrap="nowrap">
+                <xsl:if test="$rownum mod 2 = 0">
+                    <xsl:attribute name="class">altrow</xsl:attribute>
+                </xsl:if>
+                <xsl:for-each select="param">
+                    <xsl:value-of select="@name"/>
+                    <br/>
                 </xsl:for-each>
-              </table>
             </td>
-          </tr>
-          </xsl:if>
-        </table>
-    </div>
-</xsl:template>
+            <td valign="top" nowrap="nowrap">
+                <xsl:if test="$rownum mod 2 = 0">
+                    <xsl:attribute name="class">altrow</xsl:attribute>
+                </xsl:if>
+                <xsl:for-each select="param">
+                    <xsl:value-of select="."/>
+                    <br/>
+                </xsl:for-each>
+            </td>
+        </tr>
+    </xsl:template>
+
+
+    <!--
+      -
+      -->
+    <xsl:template match="interceptor">
+        <xsl:param name="rownum">1</xsl:param>
+        <tr>
+            <td>
+                <xsl:if test="$rownum mod 2 = 0">
+                    <xsl:attribute name="class">altrow</xsl:attribute>
+                </xsl:if>
+
+                <a>
+                    <xsl:attribute name="name">ref_
+                        <xsl:value-of select="@name"/>
+                    </xsl:attribute>
+                </a>
+                <xsl:if test="$rownum mod 2 = 0">
+                    <xsl:attribute name="class">altrow</xsl:attribute>
+                </xsl:if>
+                <xsl:value-of select="@name"/>
+            </td>
+
+            <td>
+                <xsl:if test="$rownum mod 2 = 0">
+                    <xsl:attribute name="class">altrow</xsl:attribute>
+                </xsl:if>
+
+                <xsl:value-of select="@class"/>
+            </td>
+        </tr>
+    </xsl:template>
+
+
+    <!--
+      -
+      -->
+    <xsl:template match="interceptor-stack">
+        <xsl:param name="rownum">1</xsl:param>
+        <tr>
+            <td valign="top">
+                <xsl:if test="$rownum mod 2 = 0">
+                    <xsl:attribute name="class">altrow</xsl:attribute>
+                </xsl:if>
+
+                <a>
+                    <xsl:attribute name="name">ref_
+                        <xsl:value-of select="@name"/>
+                    </xsl:attribute>
+                </a>
+                <xsl:if test="$rownum mod 2 = 0">
+                    <xsl:attribute name="class">altrow</xsl:attribute>
+                </xsl:if>
+                <xsl:value-of select="@name"/>
+            </td>
+
+            <td valign="top">
+                <xsl:if test="$rownum mod 2 = 0">
+                    <xsl:attribute name="class">altrow</xsl:attribute>
+                </xsl:if>
+
+                <xsl:for-each select="interceptor-ref">
+                    <xsl:value-of select="position()"/>.
+                    <a>
+                        <xsl:attribute name="href">#ref_
+                            <xsl:value-of select="@name"/>
+                        </xsl:attribute>
+                        <xsl:value-of select="@name"/>
+                    </a>
+                    <br/>
+                </xsl:for-each>
+            </td>
+        </tr>
+    </xsl:template>
+
+    <xsl:template match="action">
+        <xsl:param name="namespace">default/</xsl:param>
+
+        <a>
+            <xsl:attribute name="name">action_
+                <xsl:value-of select="$namespace"/>
+                <xsl:value-of select="@name"/>
+            </xsl:attribute>
+        </a>
+        <div class="subheader">Action:
+            <xsl:value-of select="@name"/>
+        </div>
+        <div class="content">
+            <table cellpadding="4" cellspacing="2" border="0" width="90%">
+                <tr>
+                    <td valign="top" class="rowtitle">Class:</td>
+                    <td valign="top">
+                        <xsl:value-of select="@class"/>
+                    </td>
+                </tr>
+                <tr>
+                    <td valign="top" class="rowtitle">Interceptor Stack:</td>
+                    <td valign="top" class="altrow">
+                        <xsl:for-each select="interceptor-ref">
+                            <xsl:value-of select="position()"/>.
+                            <a>
+                                <xsl:attribute name="href">#ref_
+                                    <xsl:value-of select="@name"/>
+                                </xsl:attribute>
+                                <xsl:value-of select="@name"/>
+                            </a>
+                            <br/>
+                        </xsl:for-each>
+                    </td>
+                </tr>
+                <xsl:if test="result">
+                    <tr>
+                        <td valign="top" class="rowtitle">Results:</td>
+                        <td valign="top" class="altrow">
+                            <table width="100%">
+                                <tr>
+                                    <th>
+                                        <div align="left">Name</div>
+                                    </th>
+                                    <th>
+                                        <div align="left">Type</div>
+                                    </th>
+                                    <th>
+                                        <div align="left">Param Name</div>
+                                    </th>
+                                    <th>
+                                        <div align="left">Param Value</div>
+                                    </th>
+                                </tr>
+                                <xsl:for-each select="result">
+                                    <xsl:variable name="rownum">
+                                        <xsl:value-of select="position()"/>
+                                    </xsl:variable>
+                                    <xsl:apply-templates select="."/>
+                                </xsl:for-each>
+                            </table>
+                        </td>
+                    </tr>
+                </xsl:if>
+            </table>
+        </div>
+    </xsl:template>
 
 </xsl:stylesheet>
 

src/example/com/opensymphony/webwork/example/ExceptionAction.java

 import com.opensymphony.xwork.Action;
 
 /**
- *
- * 
  * @author $Author$
  * @version $Revision$
  */

src/example/com/opensymphony/webwork/example/FormAction.java

 
 /**
  * FormAction
+ *
  * @author Jason Carreira
- * Created Apr 2, 2003 10:22:36 PM
+ *         Created Apr 2, 2003 10:22:36 PM
  */
 public class FormAction extends ActionSupport {
     //~ Instance fields ////////////////////////////////////////////////////////

src/example/com/opensymphony/webwork/example/IndexedPropertyAction.java

 
 /**
  * IndexedPropertyAction
+ *
  * @author Jason Carreira
- * Date: Nov 23, 2003 2:36:58 PM
+ *         Date: Nov 23, 2003 2:36:58 PM
  */
 public class IndexedPropertyAction extends ActionSupport {
     private Map emails;

src/example/com/opensymphony/webwork/example/IteratorExample.java

 
 
 /**
- *
- *
  * @author $author$
  * @author Rick Salsa (rsal@mb.sympatico.ca)
  * @version $Revision$

src/example/com/opensymphony/webwork/example/JavascriptValidationAction-javascriptValidation-validation.xml

 
     <field name="url">
         <field-validator type="url">
-            <message>You must enter a valid URL.</message>            
+            <message>You must enter a valid URL.</message>
         </field-validator>
     </field>
 

src/example/com/opensymphony/webwork/example/LoanCalc.java

 
 import com.opensymphony.xwork.ActionSupport;
 
-import java.util.List;
 import java.util.ArrayList;
+import java.util.List;
 
 /**
  * @author <a href="mailto:meier@meisterbohne.de">Philipp Meier</a>
- * Date: 15.10.2003
- * Time: 18:27:34
+ *         Date: 15.10.2003
+ *         Time: 18:27:34
  */
 public class LoanCalc extends ActionSupport {
     private float presentValue = 1000;

src/example/com/opensymphony/webwork/example/MonthList.java

 import java.util.List;
 
 /**
- *	List of days in month
- *      
- *	@see <related>
- *	@author Rickard �berg (<email>)
- *	@version $Revision$
+ * List of days in month
+ *
+ * @author Rickard �berg (<email>)
+ * @version $Revision$
+ * @see <related>
  */
 public class MonthList
         extends MonthSelector {

src/example/com/opensymphony/webwork/example/MonthSelector.java

 import com.opensymphony.xwork.ActionSupport;
 
 /**
- *	Month selector
- *      
- *	@see <related>
- *	@author Rickard �berg (<email>)
- *	@version $Revision$
+ * Month selector
+ *
+ * @author Rickard �berg (<email>)
+ * @version $Revision$
+ * @see <related>
  */
 public class MonthSelector
         extends ActionSupport {

src/example/com/opensymphony/webwork/example/SelectExampleAction.java

 
 import com.opensymphony.xwork.ActionSupport;
 
-import java.util.Map;
 import java.util.HashMap;
+import java.util.Map;
 
 /**
  * SelectExampleAction
+ *
  * @author Jason Carreira
- * Date: Nov 23, 2003 12:20:02 AM
+ *         Date: Nov 23, 2003 12:20:02 AM
  */
 public class SelectExampleAction extends ActionSupport {
     private Map selectMap;

src/example/com/opensymphony/webwork/example/TabbedPaneTest.java

 
 import com.opensymphony.xwork.ActionSupport;
 
-import java.util.Vector;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Set;
+import java.util.Vector;
 
-public class TabbedPaneTest extends ActionSupport
-{
-    static Set getData()
-    {
+public class TabbedPaneTest extends ActionSupport {
+    static Set getData() {
         Map tmpMap = new HashMap();
 
-        tmpMap.put( "Counter", "/SimpleCounter.action" );
-        tmpMap.put( "UI Tags", "/TagTest.action" );
-        tmpMap.put( "Country List", "/CountryTest.action" );
+        tmpMap.put("Counter", "/SimpleCounter.action");
+        tmpMap.put("UI Tags", "/TagTest.action");
+        tmpMap.put("Country List", "/CountryTest.action");
 
         return tmpMap.entrySet();
     }
 
-    public Vector getTabs1() { return tabs1; }
+    public Vector getTabs1() {
+        return tabs1;
+    }
 
     // Attributes --------------------------------------------------------
-    private Vector tabs1 = new Vector( TabbedPaneTest.getData() );
+    private Vector tabs1 = new Vector(TabbedPaneTest.getData());
 }

src/example/com/opensymphony/webwork/example/Test.java

 package com.opensymphony.webwork.example;
 
-import org.apache.commons.logging.*;
+import com.opensymphony.webwork.interceptor.ParameterAware;
+import com.opensymphony.xwork.ActionSupport;
+import org.apache.commons.logging.LogFactory;
 
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
 import java.util.Properties;
 
-import com.opensymphony.webwork.interceptor.ParameterAware;
-import com.opensymphony.xwork.ActionSupport;
-
 /**
- *	Simple test action.
+ * Simple test action.
  *
- *	@see <related>
- *	@author Rickard �berg (rickard@middleware-company.com)
- *	@version $Revision$
+ * @author Rickard �berg (rickard@middleware-company.com)
+ * @version $Revision$
+ * @see <related>
  */
 public class Test extends ActionSupport implements ParameterAware {
     // Constants -----------------------------------------------------

src/example/com/opensymphony/webwork/example/ValidatedAction.java

 
 /**
  * ValidatedAction
+ *
  * @author Jason Carreira
- * Created Sep 12, 2003 9:23:38 PM
+ *         Created Sep 12, 2003 9:23:38 PM
  */
 public class ValidatedAction extends ActionSupport {
     private ValidatedBean bean = new ValidatedBean();

src/example/com/opensymphony/webwork/example/ValidatedBean.java

 
 /**
  * ValidatedBean
+ *
  * @author Jason Carreira
- * Created Sep 12, 2003 9:24:18 PM
+ *         Created Sep 12, 2003 9:24:18 PM
  */
 public class ValidatedBean {
     private String text;

src/example/com/opensymphony/webwork/example/counter/Counter.java

 
 
 /**
- *
- *
  * @author $Author$
  * @version $Revision$
  */

src/example/com/opensymphony/webwork/example/counter/CounterAware.java

 
 
 /**
- *
- *
  * @author $Author$
  * @version $Revision$
  */

src/example/com/opensymphony/webwork/example/jasperreports/OrderListAction.java

 
 /**
  * A list of orders each with a list of line items
- *
+ * <p/>
  * Ported to WebWork2:
  *
  * @author Peter Kelley (peterk@moveit.com.au)

src/example/com/opensymphony/webwork/example/ui/SimpleAction.java

 import com.opensymphony.xwork.Action;
 
 import java.util.ArrayList;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
-import java.util.HashMap;
 
 
 /**
- *
- * @version $Id$
  * @author Matt Ho <a href="mailto:matt@indigoegg.com">&lt;matt@indigoegg.com&gt;</a>
+ * @version $Id$
  */
 public class SimpleAction implements Action {
     //~ Instance fields ////////////////////////////////////////////////////////

src/example/com/opensymphony/webwork/example/ui/SimpleCountry.java

 
 
 /**
- * @version $Id$
  * @author Matt Ho <a href="mailto:matt@enginegreen.com">&lt;matt@enginegreen.com&gt;</a>
+ * @version $Id$
  */
 public class SimpleCountry implements Action {
     //~ Instance fields ////////////////////////////////////////////////////////

src/java/com/opensymphony/webwork/WebWorkStatics.java

 /**
  * Constants used by WebWork. The constants can be used to get or set objects out of the action context
  * or other collections.<p>
- *
+ * <p/>
  * Example:
  * <ul><code>ActionContext.getContext().put(HTTP_REQUEST, request);</code></ul>
- *
+ * <p/>
  * or
- *
+ * <p/>
  * <ul><code>
- *  ActionContext context = ActionContext.getContext();<br>
- *  HttpServletRequest request = (HttpServletRequest)context.get(HTTP_REQUEST);</code></ul>
+ * ActionContext context = ActionContext.getContext();<br>
+ * HttpServletRequest request = (HttpServletRequest)context.get(HTTP_REQUEST);</code></ul>
  *
  * @author Patrick Lightbody
  * @author Bill Lynch (docs)
      * Constant for the HTTP request object.
      */
     public static final String HTTP_REQUEST = "com.opensymphony.xwork.dispatcher.HttpServletRequest";
+
     /**
      * Constant for the HTTP response object.
      */
     public static final String HTTP_RESPONSE = "com.opensymphony.xwork.dispatcher.HttpServletResponse";
+
     /**
      * Constant for an HTTP {@link javax.servlet.RequestDispatcher request dispatcher}.
      */
     public static final String SERLVET_DISPATCHER = "com.opensymphony.xwork.dispatcher.ServletDispatcher";
+
     /**
      * Constant for the {@link javax.servlet.ServletConfig servlet config} object.
      */
     public static final String SERVLET_CONFIG = "com.opensymphony.xwork.dispatcher.ServletConfig";
+
     /**
      * Constant for the XWork compontent interceptor.
      */
     public static final String COMPONENT_MANAGER = "com.opensymphony.xwork.interceptor.component.ComponentManager";
+
     /**
      * Constant for the JSP {@link javax.servlet.jsp.PageContext page context}.
      */

src/java/com/opensymphony/webwork/config/Configuration.java

 package com.opensymphony.webwork.config;
 
 import com.opensymphony.xwork.ObjectFactory;
-
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
  * default implementation is {@link DefaultConfiguration}). This gives developers to ability to customize how
  * WebWork2 properties are set and retrieved. As an example, a developer may wish to check a separate property
  * store before delegating to the WebWork one. <p>
- *
+ * <p/>
  * Key methods: <ul>
- *
- *      <li>{@link #getLocale()}</li>
- *      <li>{@link #getString(String)}</li>
- *      <li>{@link #set(String, Object)}</li>
- *      <li>{@link #list()}</li></ul>
- *
+ * <p/>
+ * <li>{@link #getLocale()}</li>
+ * <li>{@link #getString(String)}</li>
+ * <li>{@link #set(String, Object)}</li>
+ * <li>{@link #list()}</li></ul>
+ * <p/>
  * Key methods for subclassers: <ul>
- *
- *      <li>{@link #getImpl(String)}</li>
- *      <li>{@link #setImpl(String, Object)}</li>
- *      <li>{@link #listImpl()}</li>
- *      <li>{@link #isSetImpl(String)}</li></ul>
+ * <p/>
+ * <li>{@link #getImpl(String)}</li>
+ * <li>{@link #setImpl(String, Object)}</li>
+ * <li>{@link #listImpl()}</li>
+ * <li>{@link #isSetImpl(String)}</li></ul>
  *
  * @author Rickard �berg
  * @author Jason Carreira
      * Returns the WebWork2 locale. Keys off the property <tt>webwork.locale</tt> which should be set
      * as the Java {@link java.util.Locale#toString() toString()} representation of a Locale object (i.e.,
      * "en", "de_DE", "_GB", "en_US_WIN", "de__POSIX", "fr_MAC", etc). <p>
-     *
+     * <p/>
      * If no locale is specified then the default VM locale is used ({@link java.util.Locale#getDefault()}).
      *
      * @return the WebWork2 locale if specified or the VM default locale.
      * Sets a property. Throws an exception if an error occurs when setting the property or if the
      * Configuration implementation does not support setting properties.
      *
-     * @param name the name of the property to set.
+     * @param name  the name of the property to set.
      * @param value the property to set.
-     * @throws IllegalArgumentException if an error occurs when setting the property.
+     * @throws IllegalArgumentException      if an error occurs when setting the property.
      * @throws UnsupportedOperationException if the config implementation does not support setting properties.
      */
     public static void set(String name, Object value) throws IllegalArgumentException, UnsupportedOperationException {

src/java/com/opensymphony/webwork/config/DefaultConfiguration.java

  * Default implementation of Configuration - creates and delegates to other configurations by using an internal
  * {@link DelegatingConfiguration}.
  *
- *
  * @author Rickard �berg
  * @author Jason Carreira
  * @author Bill Lynch (docs)

src/java/com/opensymphony/webwork/dispatcher/FilterDispatcher.java

  * @author Jason Carreira
  */
 public class FilterDispatcher implements Filter, WebWorkStatics {
+    //~ Static fields/initializers /////////////////////////////////////////////
 
     private static final Log log = LogFactory.getLog(FilterDispatcher.class);
 
+    //~ Instance fields ////////////////////////////////////////////////////////
+
     private FilterConfig filterConfig;
     private Map config;
 
+    //~ Methods ////////////////////////////////////////////////////////////////
+
     /**
      * Returns the filter config object.
      *

src/java/com/opensymphony/webwork/dispatcher/HttpHeaderResult.java

 package com.opensymphony.webwork.dispatcher;
 
 import com.opensymphony.webwork.ServletActionContext;
-
 import com.opensymphony.xwork.ActionContext;
 import com.opensymphony.xwork.ActionInvocation;
 import com.opensymphony.xwork.Result;
 import com.opensymphony.xwork.util.OgnlValueStack;
 import com.opensymphony.xwork.util.TextParseUtil;
 
+import javax.servlet.http.HttpServletResponse;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
 
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
 
 /**
  * A custom Result type for evaluating HTTP headers against the ValueStack.
  * @author Jason Carreira
  */
 public class HttpHeaderResult implements Result {
+    //~ Static fields/initializers /////////////////////////////////////////////
 
     public static final String DEFAULT_PARAM = "status";
 
+    //~ Instance fields ////////////////////////////////////////////////////////
+
     protected boolean parse = true;
     private Map headers;
     private int status = -1;
 
+    //~ Methods ////////////////////////////////////////////////////////////////
+
     /**
      * Returns a Map of all HTTP headers.
      *
      * Sets whether or not the HTTP header values should be evaluated against the ValueStack (by default they are).
      *
      * @param parse <tt>true</tt> if HTTP header values should be evaluated agains the ValueStack, <tt>false</tt>
-     *      otherwise.
+     *              otherwise.
      */
     public void setParse(boolean parse) {
         this.parse = parse;
     /**
      * Sets the http servlet response status code that should be set on a response.
      *
-     * @see javax.servlet.http.HttpServletResponse#setStatus(int)
      * @param status the Http status code
+     * @see javax.servlet.http.HttpServletResponse#setStatus(int)
      */
     public void setStatus(int status) {
         this.status = status;
             OgnlValueStack stack = ActionContext.getContext().getValueStack();
 
             for (Iterator iterator = headers.entrySet().iterator();
-                    iterator.hasNext();) {
+                 iterator.hasNext();) {
                 Map.Entry entry = (Map.Entry) iterator.next();
                 String value = (String) entry.getValue();
                 String finalValue = parse ? TextParseUtil.translateVariables(value, stack) : value;

src/java/com/opensymphony/webwork/dispatcher/ServletDispatcher.java

 package com.opensymphony.webwork.dispatcher;
 
 import com.opensymphony.util.FileManager;
-
 import com.opensymphony.webwork.WebWorkStatics;
 import com.opensymphony.webwork.config.Configuration;
 import com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest;
 import com.opensymphony.webwork.dispatcher.multipart.MultiPartRequestWrapper;
 import com.opensymphony.webwork.util.AttributeMap;
 import com.opensymphony.webwork.views.velocity.VelocityManager;
-
 import com.opensymphony.xwork.ActionContext;
 import com.opensymphony.xwork.ActionProxy;
 import com.opensymphony.xwork.ActionProxyFactory;
 import com.opensymphony.xwork.config.ConfigurationException;
 import com.opensymphony.xwork.util.LocalizedTextUtil;
-
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
-import java.io.File;
-import java.io.IOException;
-
-import java.util.HashMap;
-import java.util.Map;
-
 import javax.servlet.ServletConfig;
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServlet;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
+import java.io.File;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
 
 
 /*
 
 /**
  * Main dispatcher servlet in WebWork2 which acts as the controller in the MVC paradigm. <p>
- *
+ * <p/>
  * When a request enters the servlet the following things will happen: <ol>
- *
- *  <li>The action name is parsed from the servlet path (i.e., /foo/bar/MyAction.action -> MyAction).</li>
- *  <li>A context consisting of the request, response, parameters, session and application
- *      properties is created.</li>
- *  <li>An XWork <tt>ActionProxy</tt> object is instantiated (wraps an <tt>Action</tt>) using the action name, path,
- *      and context then executed.</li>
- *  <li>Action output will channel back through the response to the user.</li></ol>
- *
+ * <p/>
+ * <li>The action name is parsed from the servlet path (i.e., /foo/bar/MyAction.action -> MyAction).</li>
+ * <li>A context consisting of the request, response, parameters, session and application
+ * properties is created.</li>
+ * <li>An XWork <tt>ActionProxy</tt> object is instantiated (wraps an <tt>Action</tt>) using the action name, path,
+ * and context then executed.</li>
+ * <li>Action output will channel back through the response to the user.</li></ol>
+ * <p/>
  * Any errors occurring during the action execution will result in a
  * {@link javax.servlet.http.HttpServletResponse#SC_INTERNAL_SERVER_ERROR} error and any resource errors
  * (i.e., invalid action name or missing JSP page) will result in a
  * {@link javax.servlet.http.HttpServletResponse#SC_NOT_FOUND} error. <p>
- *
+ * <p/>
  * Instead of traditional servlet init params this servlet will initialize itself using WebWork2 properties.
  * The following properties are used upon initialization: <ul>
- *
- *  <li><tt>webwork.configuration.xml.reload</tt>: if and only if set to <tt>true</tt> then the xml configuration
- *      files (action definitions, interceptor definitions, etc) will be reloaded for each request. This is
- *      useful for development but should be disabled for production deployment.</li>
- *  <li><tt>webwork.multipart.saveDir</tt>: The path used for temporarily uploaded files. Defaults to the
- *      temp path specified by the app server.</li>
- *  <li><tt>webwork.multipart.maxSize</tt>: sets the maximum allowable multipart request size
- *      in bytes. If the size was not specified then {@link java.lang.Integer#MAX_VALUE} will be used
- *      (essentially unlimited so be careful).</li></ul>
- *
+ * <p/>
+ * <li><tt>webwork.configuration.xml.reload</tt>: if and only if set to <tt>true</tt> then the xml configuration
+ * files (action definitions, interceptor definitions, etc) will be reloaded for each request. This is
+ * useful for development but should be disabled for production deployment.</li>
+ * <li><tt>webwork.multipart.saveDir</tt>: The path used for temporarily uploaded files. Defaults to the
+ * temp path specified by the app server.</li>
+ * <li><tt>webwork.multipart.maxSize</tt>: sets the maximum allowable multipart request size
+ * in bytes. If the size was not specified then {@link java.lang.Integer#MAX_VALUE} will be used
+ * (essentially unlimited so be careful).</li></ul>
+ * <p/>
  * Developers who want to subclass this servlet may be interested in the following protected methods: <ul>
+ * <p/>
+ * <li>{@link #getParameterMap(HttpServletRequest)}</li>
+ * <li>{@link #getRequestMap(HttpServletRequest)}</li>
+ * <li>{@link #getSessionMap(HttpServletRequest)}</li>
+ * <li>{@link #getNameSpace(HttpServletRequest)}</li></ul>
  *
- *  <li>{@link #getParameterMap(HttpServletRequest)}</li>
- *  <li>{@link #getRequestMap(HttpServletRequest)}</li>
- *  <li>{@link #getSessionMap(HttpServletRequest)}</li>
- *  <li>{@link #getNameSpace(HttpServletRequest)}</li></ul>
- *
- * @see ServletDispatcherResult
  * @author <a href="mailto:rickard@middleware-company.com">Rickard �berg</a>
  * @author <a href="mailto:matt@smallleap.com">Matt Baldree</a>
  * @author Jason Carreira
  * @author <a href="mailto:cameron@datacodex.net">Cameron Braid</a>
  * @author Bill Lynch
+ * @see ServletDispatcherResult
  */
 public class ServletDispatcher extends HttpServlet implements WebWorkStatics {
     //~ Static fields/initializers /////////////////////////////////////////////
      * Merges all application and servlet attributes into a single <tt>HashMap</tt> to represent the entire
      * <tt>Action</tt> context.
      *
-     * @param requestMap a Map of all request attributes.
-     * @param parameterMap a Map of all request parameters.
-     * @param sessionMap a Map of all session attributes.
+     * @param requestMap     a Map of all request attributes.
+     * @param parameterMap   a Map of all request parameters.
+     * @param sessionMap     a Map of all session attributes.
      * @param applicationMap a Map of all servlet context attributes.
-     * @param request the HttpServletRequest object.
-     * @param response the HttpServletResponse object.
-     * @param servletConfig the ServletConfig object.
+     * @param request        the HttpServletRequest object.
+     * @param response       the HttpServletResponse object.
+     * @param servletConfig  the ServletConfig object.
      * @return a HashMap representing the <tt>Action</tt> context.
      */
     public static HashMap createContextMap(Map requestMap, Map parameterMap, Map sessionMap, Map applicationMap, HttpServletRequest request, HttpServletResponse response, ServletConfig servletConfig) {
     /**
      * Initalizes the servlet. Please read the {@link ServletDispatcher class documentation} for more
      * detail. <p>
-     *
+     * <p/>
      * Note, the <a href="http://jakarta.apache.org/velocity/" target="_blank">Velocity</a> compontent is also
      * initialized in this method - it is used in many of the WebWork2 JSP tags.
      *
     /**
      * Services the request by determining the desired action to load, building the action context and
      * then executing the action. This handles all servlet requests including GETs and POSTs. <p>
-     *
+     * <p/>
      * This method also transparently handles multipart requests.
      *
-     * @param request the HttpServletRequest object.
+     * @param request  the HttpServletRequest object.
      * @param response the HttpServletResponse object.
-     * @exception ServletException if an error occurs while loading or executing the action.
+     * @throws ServletException if an error occurs while loading or executing the action.
      */
     public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException {
         try {
      * the action is executed and output channels throught the response object. Errors are also
      * sent back to the user via the {@link #sendError(HttpServletRequest,HttpServletResponse,int,Exception)} method.
      *
-     * @param request the HttpServletRequest object.
-     * @param response the HttpServletResponse object.
-     * @param namespace the namespace or context of the action.
-     * @param actionName the name of the action to execute.
-     * @param requestMap a Map of request attributes.
-     * @param parameterMap a Map of request parameters.
-     * @param sessionMap a Map of all session attributes.
+     * @param request        the HttpServletRequest object.
+     * @param response       the HttpServletResponse object.
+     * @param namespace      the namespace or context of the action.
+     * @param actionName     the name of the action to execute.
+     * @param requestMap     a Map of request attributes.
+     * @param parameterMap   a Map of request parameters.
+     * @param sessionMap     a Map of all session attributes.
      * @param applicationMap a Map of all application attributes.
      */
     public void serviceAction(HttpServletRequest request, HttpServletResponse response, String namespace, String actionName, Map requestMap, Map parameterMap, Map sessionMap, Map applicationMap) {
     /**
      * Sends an HTTP error response code.
      *
-     * @param request the HttpServletRequest object.
+     * @param request  the HttpServletRequest object.
      * @param response the HttpServletResponse object.
-     * @param code the HttpServletResponse error code (see {@link HttpServletResponse} for possible error codes).
-     * @param e the Exception that is reported.
-    */
+     * @param code     the HttpServletResponse error code (see {@link HttpServletResponse} for possible error codes).
+     * @param e        the Exception that is reported.
+     */
     protected void sendError(HttpServletRequest request, HttpServletResponse response, int code, Exception e) {
         try {
             // send a http error response to use the servlet defined error handler
      * requests in a special way or to handle other types of requests. Note, {@link MultiPartRequestWrapper} is
      * flexible - you should look to that first before overriding this method to handle multipart data.
      *
-     * @see MultiPartRequestWrapper
      * @param request the HttpServletRequest object.
      * @return a wrapped request or original request.
+     * @see MultiPartRequestWrapper
      */
     protected HttpServletRequest wrapRequest(HttpServletRequest request) throws IOException {
         // don't wrap more than once

src/java/com/opensymphony/webwork/dispatcher/VelocityResult.java

 import com.opensymphony.webwork.ServletActionContext;
 import com.opensymphony.webwork.config.Configuration;
 import com.opensymphony.webwork.views.velocity.VelocityManager;
-
 import com.opensymphony.xwork.ActionContext;
 import com.opensymphony.xwork.ActionInvocation;
 import com.opensymphony.xwork.util.OgnlValueStack;
-
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-
 import org.apache.velocity.Template;
 import org.apache.velocity.app.VelocityEngine;
 import org.apache.velocity.context.Context;
 
-import java.io.Writer;
-
 import javax.servlet.Servlet;
 import javax.servlet.ServletContext;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 import javax.servlet.jsp.JspFactory;
 import javax.servlet.jsp.PageContext;
+import java.io.Writer;
 
 
 /**
  * Using the Servlet container's {@link JspFactory}, this result mocks a JSP execution environment
  * and then displays a Velocity template that will be streamed directly to the servlet output. <p>