You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2006/02/10 19:19:19 UTC

svn commit: r376786 [1/4] - in /struts/el/trunk/src: java/org/apache/strutsel/ test/org/apache/strutsel/taglib/bean/ test/org/apache/strutsel/taglib/logic/ tld/

Author: husted
Date: Fri Feb 10 10:19:16 2006
New Revision: 376786

URL: http://svn.apache.org/viewcvs?rev=376786&view=rev
Log:
Checkstyle Roundup 
* EL package reformatted with latest Jalopy settings. Stylistic changes only.


Modified:
    struts/el/trunk/src/java/org/apache/strutsel/package.html
    struts/el/trunk/src/test/org/apache/strutsel/taglib/bean/TestELSizeTag.java
    struts/el/trunk/src/test/org/apache/strutsel/taglib/logic/TestELMatchTag.java
    struts/el/trunk/src/test/org/apache/strutsel/taglib/logic/TestELNotMatchTag.java
    struts/el/trunk/src/tld/struts-bean-el.tld
    struts/el/trunk/src/tld/struts-html-el.tld
    struts/el/trunk/src/tld/struts-logic-el.tld
    struts/el/trunk/src/tld/struts-tiles-el.tld

Modified: struts/el/trunk/src/java/org/apache/strutsel/package.html
URL: http://svn.apache.org/viewcvs/struts/el/trunk/src/java/org/apache/strutsel/package.html?rev=376786&r1=376785&r2=376786&view=diff
==============================================================================
--- struts/el/trunk/src/java/org/apache/strutsel/package.html (original)
+++ struts/el/trunk/src/java/org/apache/strutsel/package.html Fri Feb 10 10:19:16 2006
@@ -1,257 +1,304 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
- <head>
-  <base/>
-  <title>Package Documentation for org.apache.strutsel Package</title>
- </head>
- <body bgcolor="white">
-  <p>
-   <a name="doc.Description">The "Struts-EL" library</a>
-   contains a set of tag libraries, all of whose classes are derived from
-   classes in the Struts tag libraries.  The Struts-EL tags all implement the
-   same attributes as their counterparts in the base Struts tag libraries.  The
-   difference provided by Struts-EL is that the tag attribute values are not
-   evaluated as run-time scriptlets (sometimes called "rtexprvalue"s), but are
-   instead evaluated by the expression language engine in the JavaServer Pages
-   Standard Tag Library (often called the JSTL).
-  </p>
-  <div align="Center">    
-   <p>
-    <a href="#doc.Intro">[Introduction]</a>
-    <a href="#doc.Html">[HTML-EL Tag Library]</a>
-    <a href="#doc.Logic">[Logic-EL Tag Library]</a>
-    <a href="#doc.Bean">[Bean-EL Tag Library]</a>
-  </div>
-  <hr>
-  <h3><a name="doc.Intro">Introduction</a></h3>
-  <p>
-   The Struts-EL library is intended to be used alongside the Struts library,
-   and with the JSTL.  In the development of the Struts-EL library, each tag in
-   the Struts tag libraries was examined to see if all of its functionality is
-   covered in an existing tag in the JSTL.  If this was the case, then it was
-   decided to <strong>not</strong> include a version of this tag in the
-   Struts-EL library.  The tags that were "ported" to Struts-EL were deemed to
-   have functionality which the JSTL could not directly cover.
-  </p>
-  <p>
-   The rest of this package description will briefly review the Struts tags
-   which were <strong>not</strong> ported to the Struts-EL library (or which
-   were "on the bubble", and why.  The detailed package descriptions for each
-   section of the library (html-el, logic-el, and bean-el) will demonstrate in
-   detail the usage of the Struts-EL tags, focusing on attribute value
-   evaluation issues.  Details of the operation of these tags in the Struts
-   framework can be learned from the package descriptions and documentation for
-   the base Struts library.
-  </p>
-  <hr>
-  <h3><a name="doc.Html">HTML-EL tag library</a></h3>
-  This is a short section.  The JSTL does not include any functionality for
+<head>
+    <base/>
+    <title>Package Documentation for org.apache.strutsel Package</title>
+</head>
+
+<body bgcolor="white">
+<p>
+    <a name="doc.Description">The "Struts-EL" library</a>
+    contains a set of tag libraries, all of whose classes are derived from
+    classes in the Struts tag libraries. The Struts-EL tags all implement the
+    same attributes as their counterparts in the base Struts tag libraries.
+    The
+    difference provided by Struts-EL is that the tag attribute values are not
+    evaluated as run-time scriptlets (sometimes called "rtexprvalue"s), but
+    are
+    instead evaluated by the expression language engine in the JavaServer
+    Pages
+    Standard Tag Library (often called the JSTL).
+</p>
+
+<div align="Center">
+    <p>
+        <a href="#doc.Intro">[Introduction]</a>
+        <a href="#doc.Html">[HTML-EL Tag Library]</a>
+        <a href="#doc.Logic">[Logic-EL Tag Library]</a>
+        <a href="#doc.Bean">[Bean-EL Tag Library]</a>
+</div>
+<hr>
+
+<h3><a name="doc.Intro">Introduction</a></h3>
+
+<p>
+    The Struts-EL library is intended to be used alongside the Struts library,
+    and with the JSTL. In the development of the Struts-EL library, each tag
+    in
+    the Struts tag libraries was examined to see if all of its functionality
+    is
+    covered in an existing tag in the JSTL. If this was the case, then it was
+    decided to <strong>not</strong> include a version of this tag in the
+    Struts-EL library. The tags that were "ported" to Struts-EL were deemed to
+    have functionality which the JSTL could not directly cover.
+</p>
+
+<p>
+    The rest of this package description will briefly review the Struts tags
+    which were <strong>not</strong> ported to the Struts-EL library (or which
+    were "on the bubble", and why. The detailed package descriptions for each
+    section of the library (html-el, logic-el, and bean-el) will demonstrate
+    in
+    detail the usage of the Struts-EL tags, focusing on attribute value
+    evaluation issues. Details of the operation of these tags in the Struts
+    framework can be learned from the package descriptions and documentation
+    for
+    the base Struts library.
+</p>
+<hr>
+
+<h3><a name="doc.Html">HTML-EL tag library</a></h3>
+This is a short section. The JSTL does not include any functionality for
 generating HTML elements, thus every tag in the "struts-html" tag library was
 ported to the "struts-html-el" tag library.
-  <hr>
-  <h3><a name="doc.Logic">Logic-EL tag library</a></h3>
-  <p>
-   The following table lists the "struts-logic" tags which were not ported to
-   the "struts-logic-el" tag library, including which JSTL elements or features
-   will provide that functionality.  Examples after the table will demonstrate
-   these.
-  </p>
-  <table border="1">
-   <tr>
-    <th>Struts-Logic tag</th>
-    <th>JSTL tags or feature</th>
-   </tr>
-   <tr>
-    <td>empty</td>
-    <td>c:if, c:when, EL</td>
-   </tr>
-   <tr>
-    <td>equal</td>
-    <td>c:if, c:when, EL</td>
-   </tr>
-   <tr>
-    <td>greaterEqual</td>
-    <td>c:if, c:when, EL</td>
-   </tr>
-   <tr>
-    <td>greaterThan</td>
-    <td>c:if, c:when, EL</td>
-   </tr>
-   <tr>
-    <td>lessEqual</td>
-    <td>c:if, c:when, EL</td>
-   </tr>
-   <tr>
-    <td>lessThan</td>
-    <td>c:if, c:when, EL</td>
-   </tr>
-   <tr>
-    <td>notEmpty</td>
-    <td>c:if, c:when, EL</td>
-   </tr>
-   <tr>
-    <td>notEqual</td>
-    <td>c:if, c:when, EL</td>
-   </tr>
-  </table>
-  <p>
-   The following are some examples of "Before" and "After", where the first
-   example is pure Struts usage, and the second example will be pure JSTL
-   usage, not involving Struts-EL at all.
-  </p>
-  <p><i>Struts Example:</i></p>
-  <pre>
-   &lt;logic:empty name="foo" property="stuff"&gt;
-    Some stuff
-   &lt;/logic:empty&gt;</pre>
-  <p><i>JSTL Version:</i> </p>
-  <pre>
-   &lt;c:if test="${empty foo.stuff}"&gt;
-    Some stuff
-   &lt;/c:if&gt;</pre>
-  <p><i>Struts Example:</i></p>
-  <pre>
-   &lt;logic:notEmpty name="foo" property="stuff"&gt;
-    Some stuff
-   &lt;/logic:notEmpty&gt;</pre>
-  <p><i>JSTL Version:</i></p>
-  <pre>
-   &lt;c:if test="${!empty foo.stuff}"&gt;
-    Some stuff
-   &lt;/c:if&gt;</pre>
-  <p><i>Struts Example:</i></p>
-  <pre>
-   &lt;logic:equal name="foo" property="stuff" value="&lt;%=thing.getStuff()%&gt;"&gt;
-    Some stuff
-   &lt;/logic:equal&gt;</pre>
-  <p><i>JSTL Version:</i></p>
-  <pre>
-   &lt;%-- Assumes "thing" is a scoped variable --%&gt;
-   &lt;c:if test="${foo.stuff eq thing.stuff}"&gt;
-    Some stuff
-   &lt;/c:if&gt;</pre>
-  <p><i>Struts Example:</i></p>
-  <pre>
-   &lt;logic:greaterThan name="foo" property="stuff" value="&lt;%=thing.getStuff()%&gt;"&gt;
-    Some stuff
-   &lt;/logic:empty&gt;</pre>
-  <p><i>JSTL Version:</i></p>
-  <pre>
-   &lt;%-- Assumes "thing" is a scoped variable --%&gt;
-   &lt;c:if test="${foo.stuff ge thing.stuff}"&gt;
-    Some stuff
-   &lt;/c:if&gt;</pre>
-  <p><i>Struts Example:</i></p>
-  <pre>
-   &lt;logic:present cookie="shoppingCart"&gt;
-    Some stuff
-   &lt;/logic:present&gt;</pre>
-  <p><i>JSTL Version:</i></p>
-  <pre>
-   &lt;c:if test='${!empty cookie["shoppingCart"]}"&gt;
-    Some stuff
-   &lt;/c:if&gt;</pre>
-  <p><i>Struts Example:</i></p>
-  <pre>
-   &lt;logic:present header="User-Agent"&gt;
-    Some stuff
-   &lt;/logic:present&gt;</pre>
-  <p><i>JSTL Version:</i></p>
-  <pre>
-   &lt;c:if test='${!empty header["User-Agent"]}"&gt;
-    Some stuff
-   &lt;/c:if&gt;</pre>
- <hr>
-  <h3><a name="doc.Bean">Bean-EL tag library</a></h3>
-  <p>
-   The following table lists the "struts-bean" tags which were not ported to
-   the "struts-bean-el" tag library, including which JSTL elements or features
-   will provide that functionality.  Examples after the table will demonstrate
-   these.
-  </p>
-  <table border="1">
-   <tr>
-    <th>Struts-Bean tag</th>
-    <th>JSTL tags or feature</th>
-   </tr>
-   <tr>
-    <td>cookie</td>
-    <td>c:set, EL</td>
-   </tr>
-   <tr>
-    <td>define</td>
-    <td>c:set, EL</td>
-   </tr>
-   <tr>
-    <td>header</td>
-    <td>c:set, EL</td>
-   </tr>
-   <tr>
-    <td>include</td>
-    <td>c:import</td>
-   </tr>
-   <tr>
-    <td>parameter</td>
-    <td>c:set, EL</td>
-   </tr>
-   <tr>
-    <td>write</td>
-    <td>c:out</td>
-   </tr>
-  </table>
-  <p>
-   Note that the "bean:resource" Struts tag is similar, at least superficially,
-   to the functionality of the "c:import" tag, but "bean:resource"
-   <strong>was</strong> ported to the Struts-EL library.  This is because
-   resources requested through the "c:import" tag may be processed through a
-   mapped servlet, preventing direct access to the resource.  The
-   "bean:resource" tag allows direct access to the resource, without an
-   intervening servlet.  For instance, if it is desired to obtain the raw text
-   of a JSP page, using "c:import" will not work, because the JSP page will be
-   processed by the JSP servlet.  However, using "bean:resource" will retrieve
-   just the text of the JSP page, if that is desired.
-  </p>
-  <p>
-   Also note that some functionality of the "bean:include" tag, which was not
-   ported to the Struts-EL library, is not available in the JSTL.  This
-   includes the ability to specify the name of a Struts forward, and the
-   ability to include the current transaction control token.  These features
-   will be addressed in a future minor release of Struts-EL.
-  </p>
-  <p>
-   The following are some examples of "Before" and "After", where the first
-   example is pure Struts usage, and the second example will be pure JSTL
-   usage, not involving Struts-EL at all.
-  </p>
-  <p><i>Struts Example:</i></p>
-  <pre>
-   &lt;bean:cookie id="cookieVal" name="stuff"/&gt;</pre>
-  <p><i>JSTL Version:</i></p>
-  <pre>
-   &lt;c:set var="cookieVal" value='${cookie["stuff"]}'/&gt;</pre>
-  <p><i>Struts Example:</i></p>
-  <pre>
-   &lt;bean:define id="thing" name="foo" property="stuff"/&gt;</pre>
-  <p><i>JSTL Version:</i></p>
-  <pre>
-   &lt;c:set var="thing" value="${foo.stuff}"/&gt;</pre>
-  <p><i>Struts Example:</i></p>
-  <pre>
-   &lt;bean:header id="headerVal" name="stuff"/&gt;</pre>
-  <p><i>JSTL Version:</i></p>
-  <pre>
-   &lt;c:set var="headerVal" value='${header["stuff"]}'/&gt;</pre>
-  <p><i>Struts Example:</i></p>
-  <pre>
-   &lt;bean:include id="stuffOut" href="http://somewhere.com/stuff.jsp"/&gt;</pre>
-  <p><i>JSTL Version:</i></p>
-  <pre>
-   &lt;c:import var="stuffOut" value="http://somewhere.com/stuff.jsp"/&gt;</pre>
-  <p><i>Struts Example:</i></p>
-  <pre>
-   &lt;bean:parameter id="parameterVal" name="stuff"/&gt;</pre>
-  <p><i>JSTL Version:</i></p>
-  <pre>
-   &lt;c:set var="parameterVal" value='${param["stuff"]}'/&gt;</pre>
- </body>
+<hr>
+
+<h3><a name="doc.Logic">Logic-EL tag library</a></h3>
+
+<p>
+    The following table lists the "struts-logic" tags which were not ported to
+    the "struts-logic-el" tag library, including which JSTL elements or
+    features
+    will provide that functionality. Examples after the table will demonstrate
+    these.
+</p>
+<table border="1">
+    <tr>
+        <th>Struts-Logic tag</th>
+        <th>JSTL tags or feature</th>
+    </tr>
+    <tr>
+        <td>empty</td>
+        <td>c:if, c:when, EL</td>
+    </tr>
+    <tr>
+        <td>equal</td>
+        <td>c:if, c:when, EL</td>
+    </tr>
+    <tr>
+        <td>greaterEqual</td>
+        <td>c:if, c:when, EL</td>
+    </tr>
+    <tr>
+        <td>greaterThan</td>
+        <td>c:if, c:when, EL</td>
+    </tr>
+    <tr>
+        <td>lessEqual</td>
+        <td>c:if, c:when, EL</td>
+    </tr>
+    <tr>
+        <td>lessThan</td>
+        <td>c:if, c:when, EL</td>
+    </tr>
+    <tr>
+        <td>notEmpty</td>
+        <td>c:if, c:when, EL</td>
+    </tr>
+    <tr>
+        <td>notEqual</td>
+        <td>c:if, c:when, EL</td>
+    </tr>
+</table>
+<p>
+    The following are some examples of "Before" and "After", where the first
+    example is pure Struts usage, and the second example will be pure JSTL
+    usage, not involving Struts-EL at all.
+</p>
+
+<p><i>Struts Example:</i></p>
+<pre>
+    &lt;logic:empty name="foo" property="stuff"&gt;
+    Some stuff
+    &lt;/logic:empty&gt;</pre>
+
+<p><i>JSTL Version:</i></p>
+<pre>
+    &lt;c:if test="${empty foo.stuff}"&gt;
+    Some stuff
+    &lt;/c:if&gt;</pre>
+
+<p><i>Struts Example:</i></p>
+<pre>
+    &lt;logic:notEmpty name="foo" property="stuff"&gt;
+    Some stuff
+    &lt;/logic:notEmpty&gt;</pre>
+
+<p><i>JSTL Version:</i></p>
+<pre>
+    &lt;c:if test="${!empty foo.stuff}"&gt;
+    Some stuff
+    &lt;/c:if&gt;</pre>
+
+<p><i>Struts Example:</i></p>
+<pre>
+    &lt;logic:equal name="foo" property="stuff" value="&lt;%=thing.getStuff()%&gt;"&gt;
+    Some stuff
+    &lt;/logic:equal&gt;</pre>
+
+<p><i>JSTL Version:</i></p>
+<pre>
+    &lt;%-- Assumes "thing" is a scoped variable --%&gt;
+    &lt;c:if test="${foo.stuff eq thing.stuff}"&gt;
+    Some stuff
+    &lt;/c:if&gt;</pre>
+
+<p><i>Struts Example:</i></p>
+<pre>
+    &lt;logic:greaterThan name="foo" property="stuff" value="&lt;%=thing.getStuff()%&gt;"&gt;
+    Some stuff
+    &lt;/logic:empty&gt;</pre>
+
+<p><i>JSTL Version:</i></p>
+<pre>
+    &lt;%-- Assumes "thing" is a scoped variable --%&gt;
+    &lt;c:if test="${foo.stuff ge thing.stuff}"&gt;
+    Some stuff
+    &lt;/c:if&gt;</pre>
+
+<p><i>Struts Example:</i></p>
+<pre>
+    &lt;logic:present cookie="shoppingCart"&gt;
+    Some stuff
+    &lt;/logic:present&gt;</pre>
+
+<p><i>JSTL Version:</i></p>
+<pre>
+    &lt;c:if test='${!empty cookie["shoppingCart"]}"&gt;
+    Some stuff
+    &lt;/c:if&gt;</pre>
+
+<p><i>Struts Example:</i></p>
+<pre>
+    &lt;logic:present header="User-Agent"&gt;
+    Some stuff
+    &lt;/logic:present&gt;</pre>
+
+<p><i>JSTL Version:</i></p>
+<pre>
+    &lt;c:if test='${!empty header["User-Agent"]}"&gt;
+    Some stuff
+    &lt;/c:if&gt;</pre>
+<hr>
+
+<h3><a name="doc.Bean">Bean-EL tag library</a></h3>
+
+<p>
+    The following table lists the "struts-bean" tags which were not ported to
+    the "struts-bean-el" tag library, including which JSTL elements or
+    features
+    will provide that functionality. Examples after the table will demonstrate
+    these.
+</p>
+<table border="1">
+    <tr>
+        <th>Struts-Bean tag</th>
+        <th>JSTL tags or feature</th>
+    </tr>
+    <tr>
+        <td>cookie</td>
+        <td>c:set, EL</td>
+    </tr>
+    <tr>
+        <td>define</td>
+        <td>c:set, EL</td>
+    </tr>
+    <tr>
+        <td>header</td>
+        <td>c:set, EL</td>
+    </tr>
+    <tr>
+        <td>include</td>
+        <td>c:import</td>
+    </tr>
+    <tr>
+        <td>parameter</td>
+        <td>c:set, EL</td>
+    </tr>
+    <tr>
+        <td>write</td>
+        <td>c:out</td>
+    </tr>
+</table>
+<p>
+    Note that the "bean:resource" Struts tag is similar, at least
+    superficially,
+    to the functionality of the "c:import" tag, but "bean:resource"
+    <strong>was</strong> ported to the Struts-EL library. This is because
+    resources requested through the "c:import" tag may be processed through a
+    mapped servlet, preventing direct access to the resource. The
+    "bean:resource" tag allows direct access to the resource, without an
+    intervening servlet. For instance, if it is desired to obtain the raw text
+    of a JSP page, using "c:import" will not work, because the JSP page will
+    be
+    processed by the JSP servlet. However, using "bean:resource" will retrieve
+    just the text of the JSP page, if that is desired.
+</p>
+
+<p>
+    Also note that some functionality of the "bean:include" tag, which was not
+    ported to the Struts-EL library, is not available in the JSTL. This
+    includes the ability to specify the name of a Struts forward, and the
+    ability to include the current transaction control token. These features
+    will be addressed in a future minor release of Struts-EL.
+</p>
+
+<p>
+    The following are some examples of "Before" and "After", where the first
+    example is pure Struts usage, and the second example will be pure JSTL
+    usage, not involving Struts-EL at all.
+</p>
+
+<p><i>Struts Example:</i></p>
+<pre>
+    &lt;bean:cookie id="cookieVal" name="stuff"/&gt;</pre>
+
+<p><i>JSTL Version:</i></p>
+<pre>
+    &lt;c:set var="cookieVal" value='${cookie["stuff"]}'/&gt;</pre>
+
+<p><i>Struts Example:</i></p>
+<pre>
+    &lt;bean:define id="thing" name="foo" property="stuff"/&gt;</pre>
+
+<p><i>JSTL Version:</i></p>
+<pre>
+    &lt;c:set var="thing" value="${foo.stuff}"/&gt;</pre>
+
+<p><i>Struts Example:</i></p>
+<pre>
+    &lt;bean:header id="headerVal" name="stuff"/&gt;</pre>
+
+<p><i>JSTL Version:</i></p>
+<pre>
+    &lt;c:set var="headerVal" value='${header["stuff"]}'/&gt;</pre>
+
+<p><i>Struts Example:</i></p>
+<pre>
+    &lt;bean:include id="stuffOut"
+    href="http://somewhere.com/stuff.jsp"/&gt;</pre>
+
+<p><i>JSTL Version:</i></p>
+<pre>
+    &lt;c:import var="stuffOut"
+    value="http://somewhere.com/stuff.jsp"/&gt;</pre>
+
+<p><i>Struts Example:</i></p>
+<pre>
+    &lt;bean:parameter id="parameterVal" name="stuff"/&gt;</pre>
+
+<p><i>JSTL Version:</i></p>
+<pre>
+    &lt;c:set var="parameterVal" value='${param["stuff"]}'/&gt;</pre>
+</body>
 </html>

Modified: struts/el/trunk/src/test/org/apache/strutsel/taglib/bean/TestELSizeTag.java
URL: http://svn.apache.org/viewcvs/struts/el/trunk/src/test/org/apache/strutsel/taglib/bean/TestELSizeTag.java?rev=376786&r1=376785&r2=376786&view=diff
==============================================================================
--- struts/el/trunk/src/test/org/apache/strutsel/taglib/bean/TestELSizeTag.java (original)
+++ struts/el/trunk/src/test/org/apache/strutsel/taglib/bean/TestELSizeTag.java Fri Feb 10 10:19:16 2006
@@ -1,41 +1,40 @@
 /*
- * $Id$ 
+ * $Id$
  *
  * Copyright 1999-2004 The Apache Software Foundation.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.strutsel.taglib.bean;
 
 import junit.framework.Test;
 import junit.framework.TestSuite;
-import javax.servlet.ServletException;
-import javax.servlet.jsp.JspException;
+
 import org.apache.cactus.JspTestCase;
 import org.apache.strutsel.taglib.utils.TestFormBean;
 
-public class TestELSizeTag extends JspTestCase
-{
-    protected  ELSizeTag   elSizeTag   = null;
+import javax.servlet.ServletException;
+import javax.servlet.jsp.JspException;
+
+public class TestELSizeTag extends JspTestCase {
+    protected ELSizeTag elSizeTag = null;
 
     public TestELSizeTag(String theName) {
         super(theName);
     }
 
     public static void main(String[] args) {
-        junit.awtui.TestRunner.main(
-                new String[] { TestELSizeTag.class.getName() });
+        junit.awtui.TestRunner.main(new String[] { TestELSizeTag.class.getName() });
     }
 
     public static Test suite() {
@@ -51,10 +50,10 @@
         elSizeTag = null;
     }
 
-    public void testPlain()
-        throws ServletException, JspException {
+    public void testPlain() throws ServletException, JspException {
         TestFormBean formBean = new TestFormBean();
-        formBean.setArrayProperty(new String[] {"abc", "def", "ghi"});
+
+        formBean.setArrayProperty(new String[] { "abc", "def", "ghi" });
         pageContext.setAttribute("testFormBean", formBean);
 
         elSizeTag.setIdExpr("sizeVar");
@@ -63,27 +62,26 @@
 
         int startTagReturn = elSizeTag.doStartTag();
 
-        Object object   = pageContext.getAttribute("sizeVar");
+        Object object = pageContext.getAttribute("sizeVar");
+
         if (object != null) {
             if (object instanceof Integer) {
                 if (((Integer) object).intValue() != 3) {
                     fail("Size variable \"sizeVar\" is not equal to 3.");
                 }
-            }
-            else {
+            } else {
                 fail("Size variable \"sizeVar\" is not an Integer object.");
             }
-        }
-        else {
+        } else {
             fail("Size variable \"sizeVar\" not in page context.");
         }
     }
 
     public void testCollectionProperty()
         throws ServletException, JspException {
-
         TestFormBean formBean = new TestFormBean();
-        formBean.setArrayProperty(new String[] {"abc", "def", "ghi"});
+
+        formBean.setArrayProperty(new String[] { "abc", "def", "ghi" });
         pageContext.setAttribute("testFormBean", formBean);
 
         elSizeTag.setIdExpr("sizeVar");
@@ -93,18 +91,17 @@
 
         System.out.println("collection[" + elSizeTag.getCollection() + "]");
 
-        Object object   = pageContext.getAttribute("sizeVar");
+        Object object = pageContext.getAttribute("sizeVar");
+
         if (object != null) {
             if (object instanceof Integer) {
                 if (((Integer) object).intValue() != 3) {
                     fail("Size variable \"sizeVar\" is not equal to 3.");
                 }
-            }
-            else {
+            } else {
                 fail("Size variable \"sizeVar\" is not an Integer object.");
             }
-        }
-        else {
+        } else {
             fail("Size variable \"sizeVar\" not in page context.");
         }
     }

Modified: struts/el/trunk/src/test/org/apache/strutsel/taglib/logic/TestELMatchTag.java
URL: http://svn.apache.org/viewcvs/struts/el/trunk/src/test/org/apache/strutsel/taglib/logic/TestELMatchTag.java?rev=376786&r1=376785&r2=376786&view=diff
==============================================================================
--- struts/el/trunk/src/test/org/apache/strutsel/taglib/logic/TestELMatchTag.java (original)
+++ struts/el/trunk/src/test/org/apache/strutsel/taglib/logic/TestELMatchTag.java Fri Feb 10 10:19:16 2006
@@ -1,26 +1,22 @@
 /*
- * $Id$ 
+ * $Id$
  *
  * Copyright 1999-2004 The Apache Software Foundation.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.strutsel.taglib.logic;
 
-import javax.servlet.ServletException;
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.Tag;
 import junit.framework.Test;
 import junit.framework.TestSuite;
 
@@ -28,9 +24,11 @@
 import org.apache.cactus.WebRequest;
 import org.apache.strutsel.taglib.utils.TestFormBean;
 
-public class TestELMatchTag
-    extends JspTestCase {
+import javax.servlet.ServletException;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.tagext.Tag;
 
+public class TestELMatchTag extends JspTestCase {
     protected final static String PROP_KEY = "stringProperty";
     protected final static String VAR_KEY = "stringVar";
     protected final static String VALUE_KEY = "abcde";
@@ -43,12 +41,10 @@
     }
 
     public static void main(String[] args) {
-        junit.awtui.TestRunner.main(
-                new String[] { TestELMatchTag.class.getName() });
+        junit.awtui.TestRunner.main(new String[] { TestELMatchTag.class.getName() });
     }
 
     public static Test suite() {
-
         return new TestSuite(TestELMatchTag.class);
     }
 
@@ -65,8 +61,9 @@
     }
 
     public void testMatchStringMatches()
-                                throws ServletException, JspException {
+        throws ServletException, JspException {
         TestFormBean formBean = new TestFormBean();
+
         formBean.setStringProperty(VALUE_KEY);
         pageContext.setAttribute("testFormBean", formBean);
 
@@ -78,31 +75,29 @@
         elMatchTag.setValueExpr(VALUE_KEY);
 
         int startTagReturn = elMatchTag.doStartTag();
-        assertEquals("Match string matches comparison", true, 
-                     startTagReturn == Tag.EVAL_BODY_INCLUDE);
+
+        assertEquals("Match string matches comparison", true,
+            startTagReturn == Tag.EVAL_BODY_INCLUDE);
     }
 
-//     public void testPrefixMatchStringMatches()
-//                                       throws ServletException, JspException {
-//         pageContext.setAttribute(PROP_KEY, PREFIX_VALUE_KEY);
-//         pageContext.setAttribute(VAR_KEY, VALUE_KEY);
-//         elMatchTag.setVar(VAR_KEY);
-//         elMatchTag.setValue("${" + PROP_KEY + "}");
-
-//         int startTagReturn = elMatchTag.doStartTag();
-//         assertEquals("Match prefix string matches comparison", true, 
-//                      startTagReturn == Tag.EVAL_BODY_INCLUDE);
-//     }
-
-//     public void testMatchStringNotMatches()
-//                                    throws ServletException, JspException {
-//         pageContext.setAttribute(PROP_KEY, BAD_VALUE_KEY);
-//         pageContext.setAttribute(VAR_KEY, VALUE_KEY);
-//         elMatchTag.setVar(VAR_KEY);
-//         elMatchTag.setValue("${" + PROP_KEY + "}");
-
-//         int startTagReturn = elMatchTag.doStartTag();
-//         assertEquals("unMatched string not matches comparison", false, 
-//                      startTagReturn == Tag.EVAL_BODY_INCLUDE);
-//     }
+    //     public void testPrefixMatchStringMatches()
+    //                                       throws ServletException, JspException {
+    //         pageContext.setAttribute(PROP_KEY, PREFIX_VALUE_KEY);
+    //         pageContext.setAttribute(VAR_KEY, VALUE_KEY);
+    //         elMatchTag.setVar(VAR_KEY);
+    //         elMatchTag.setValue("${" + PROP_KEY + "}");
+    //         int startTagReturn = elMatchTag.doStartTag();
+    //         assertEquals("Match prefix string matches comparison", true, 
+    //                      startTagReturn == Tag.EVAL_BODY_INCLUDE);
+    //     }
+    //     public void testMatchStringNotMatches()
+    //                                    throws ServletException, JspException {
+    //         pageContext.setAttribute(PROP_KEY, BAD_VALUE_KEY);
+    //         pageContext.setAttribute(VAR_KEY, VALUE_KEY);
+    //         elMatchTag.setVar(VAR_KEY);
+    //         elMatchTag.setValue("${" + PROP_KEY + "}");
+    //         int startTagReturn = elMatchTag.doStartTag();
+    //         assertEquals("unMatched string not matches comparison", false, 
+    //                      startTagReturn == Tag.EVAL_BODY_INCLUDE);
+    //     }
 }

Modified: struts/el/trunk/src/test/org/apache/strutsel/taglib/logic/TestELNotMatchTag.java
URL: http://svn.apache.org/viewcvs/struts/el/trunk/src/test/org/apache/strutsel/taglib/logic/TestELNotMatchTag.java?rev=376786&r1=376785&r2=376786&view=diff
==============================================================================
--- struts/el/trunk/src/test/org/apache/strutsel/taglib/logic/TestELNotMatchTag.java (original)
+++ struts/el/trunk/src/test/org/apache/strutsel/taglib/logic/TestELNotMatchTag.java Fri Feb 10 10:19:16 2006
@@ -1,26 +1,22 @@
 /*
- * $Id$ 
+ * $Id$
  *
  * Copyright 1999-2004 The Apache Software Foundation.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.strutsel.taglib.logic;
 
-import javax.servlet.ServletException;
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.Tag;
 import junit.framework.Test;
 import junit.framework.TestSuite;
 
@@ -28,9 +24,11 @@
 import org.apache.cactus.WebRequest;
 import org.apache.strutsel.taglib.utils.TestFormBean;
 
-public class TestELNotMatchTag
-    extends JspTestCase {
+import javax.servlet.ServletException;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.tagext.Tag;
 
+public class TestELNotMatchTag extends JspTestCase {
     protected final static String PROP_KEY = "stringProperty";
     protected final static String VAR_KEY = "stringVar";
     protected final static String VALUE_KEY = "abcde";
@@ -43,12 +41,12 @@
     }
 
     public static void main(String[] args) {
-        junit.awtui.TestRunner.main(
-                new String[] { TestELNotMatchTag.class.getName() });
+        junit.awtui.TestRunner.main(new String[] {
+                TestELNotMatchTag.class.getName()
+            });
     }
 
     public static Test suite() {
-
         return new TestSuite(TestELNotMatchTag.class);
     }
 
@@ -65,8 +63,9 @@
     }
 
     public void testMatchStringMatches()
-                                throws ServletException, JspException {
+        throws ServletException, JspException {
         TestFormBean formBean = new TestFormBean();
+
         formBean.setStringProperty(VALUE_KEY);
         pageContext.setAttribute("testFormBean", formBean);
 
@@ -78,31 +77,29 @@
         elNotMatchTag.setValueExpr(VALUE_KEY);
 
         int startTagReturn = elNotMatchTag.doStartTag();
-        assertEquals("Match string matches comparison", false, 
-                     startTagReturn == Tag.EVAL_BODY_INCLUDE);
+
+        assertEquals("Match string matches comparison", false,
+            startTagReturn == Tag.EVAL_BODY_INCLUDE);
     }
 
-//     public void testPrefixMatchStringMatches()
-//                                       throws ServletException, JspException {
-//         pageContext.setAttribute(PROP_KEY, PREFIX_VALUE_KEY);
-//         pageContext.setAttribute(VAR_KEY, VALUE_KEY);
-//         elNotMatchTag.setVar(VAR_KEY);
-//         elNotMatchTag.setValue("${" + PROP_KEY + "}");
-
-//         int startTagReturn = elNotMatchTag.doStartTag();
-//         assertEquals("Match prefix string matches comparison", false, 
-//                      startTagReturn == Tag.EVAL_BODY_INCLUDE);
-//     }
-
-//     public void testMatchStringNotMatches()
-//                                    throws ServletException, JspException {
-//         pageContext.setAttribute(PROP_KEY, BAD_VALUE_KEY);
-//         pageContext.setAttribute(VAR_KEY, VALUE_KEY);
-//         elNotMatchTag.setVar(VAR_KEY);
-//         elNotMatchTag.setValue("${" + PROP_KEY + "}");
-
-//         int startTagReturn = elNotMatchTag.doStartTag();
-//         assertEquals("unMatched string not matches comparison", true, 
-//                      startTagReturn == Tag.EVAL_BODY_INCLUDE);
-//     }
+    //     public void testPrefixMatchStringMatches()
+    //                                       throws ServletException, JspException {
+    //         pageContext.setAttribute(PROP_KEY, PREFIX_VALUE_KEY);
+    //         pageContext.setAttribute(VAR_KEY, VALUE_KEY);
+    //         elNotMatchTag.setVar(VAR_KEY);
+    //         elNotMatchTag.setValue("${" + PROP_KEY + "}");
+    //         int startTagReturn = elNotMatchTag.doStartTag();
+    //         assertEquals("Match prefix string matches comparison", false, 
+    //                      startTagReturn == Tag.EVAL_BODY_INCLUDE);
+    //     }
+    //     public void testMatchStringNotMatches()
+    //                                    throws ServletException, JspException {
+    //         pageContext.setAttribute(PROP_KEY, BAD_VALUE_KEY);
+    //         pageContext.setAttribute(VAR_KEY, VALUE_KEY);
+    //         elNotMatchTag.setVar(VAR_KEY);
+    //         elNotMatchTag.setValue("${" + PROP_KEY + "}");
+    //         int startTagReturn = elNotMatchTag.doStartTag();
+    //         assertEquals("unMatched string not matches comparison", true, 
+    //                      startTagReturn == Tag.EVAL_BODY_INCLUDE);
+    //     }
 }

Modified: struts/el/trunk/src/tld/struts-bean-el.tld
URL: http://svn.apache.org/viewcvs/struts/el/trunk/src/tld/struts-bean-el.tld?rev=376786&r1=376785&r2=376786&view=diff
==============================================================================
--- struts/el/trunk/src/tld/struts-bean-el.tld (original)
+++ struts/el/trunk/src/tld/struts-bean-el.tld Fri Feb 10 10:19:16 2006
@@ -1,14 +1,14 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE taglib PUBLIC 
-    "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
-    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
+<!DOCTYPE taglib PUBLIC
+        "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+        "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
 <taglib>
-   <tlib-version>1.3</tlib-version>
-   <jsp-version>1.2</jsp-version>
-   <short-name>bean</short-name>
-   <uri>http://struts.apache.org/tags-bean-el</uri>
-   <description>
-   <![CDATA[
+    <tlib-version>1.3</tlib-version>
+    <jsp-version>1.2</jsp-version>
+    <short-name>bean</short-name>
+    <uri>http://struts.apache.org/tags-bean-el</uri>
+    <description>
+        <![CDATA[
    This tag library contains tags useful in accessing beans and their
   properties, as well as defining new beans (based on these accesses)
   that are accessible to the remainder of the page via scripting variables
@@ -25,14 +25,14 @@
   http://struts.apache.org), you can learn more about using
   these tags in the  Bean Tags Developer's Guide.
   ]]>
-  </description>
-   <tag>
-      <name>include</name>
-      <tag-class>org.apache.strutsel.taglib.bean.ELIncludeTag</tag-class>
-      <tei-class>org.apache.struts.taglib.bean.IncludeTei</tei-class>
-      <body-content>empty</body-content>
-      <description>
-      <![CDATA[
+    </description>
+    <tag>
+        <name>include</name>
+        <tag-class>org.apache.strutsel.taglib.bean.ELIncludeTag</tag-class>
+        <tei-class>org.apache.struts.taglib.bean.IncludeTei</tei-class>
+        <body-content>empty</body-content>
+        <description>
+            <![CDATA[
       <p><strong>Load the response from a dynamic application request 
       and make it available as a bean.</strong></p>
       
@@ -62,85 +62,85 @@
           module-relative URI to the desired resource.</li>
       </ul>
       ]]>
-      </description>
-      <attribute>
-         <name>anchor</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+        </description>
+        <attribute>
+            <name>anchor</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
             <p>Optional anchor tag ("#xxx") to be added to the generated
             hyperlink.  Specify this value <strong>without</strong> any
             "#" character.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>forward</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>forward</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
             <p>Logical name of a global <code>ActionForward</code> that contains
             the actual content-relative URI of the resource to be included.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>href</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>href</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>Absolute URL (including the appropriate protocol prefix such as
          "http:") of the resource to be included.  Because this URL could be
          external to the current web application, the session identifier will
          <strong>not</strong> be included in the request.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>id</name>
-         <required>true</required>
-         <rtexprvalue>false</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>id</name>
+            <required>true</required>
+            <rtexprvalue>false</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>Specifies the name of the scripting variable (and associated page
          scope attribute) that will be made available with the value of the
          specified web application resource.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>page</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>page</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>Module-relative URI (starting with a '/') of the web application
          resource to be included.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>transaction</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>transaction</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>Set to <code>true</code> if you want the current
          transaction control token included in the generated
          URL for this include.</p>
          ]]>
-         </description>
-      </attribute>
-   </tag>
-   <tag>
-      <name>message</name>
-      <tag-class>org.apache.strutsel.taglib.bean.ELMessageTag</tag-class>
-      <body-content>empty</body-content>
-      <description>
-      <![CDATA[
+            </description>
+        </attribute>
+    </tag>
+    <tag>
+        <name>message</name>
+        <tag-class>org.apache.strutsel.taglib.bean.ELMessageTag</tag-class>
+        <body-content>empty</body-content>
+        <description>
+            <![CDATA[
       <p><strong>Render an internationalized message string to the response.
       </strong></p>
       <p>Retrieves an internationalized message for the specified locale,
@@ -159,139 +159,139 @@
       </code>
       </p>
       ]]>
-      </description>
-      <attribute>
-         <name>arg0</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+        </description>
+        <attribute>
+            <name>arg0</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
             <p>First parametric replacement value, if any.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>arg1</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>arg1</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
             <p>Second parametric replacement value, if any.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>arg2</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>arg2</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
             <p>Third parametric replacement value, if any.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>arg3</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>arg3</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
             <p>Fourth parametric replacement value, if any.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>arg4</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>arg4</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
             <p>Fifth parametric replacement value, if any.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>bundle</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>bundle</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>The name of the application scope bean under which the
          <code>MessageResources</code> object containing our messages
          is stored.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>key</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>key</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>The message key of the requested message, which must have
          a corresponding value in the message resources. If not specified,
          the key is obtained from the <code>name</code> and
          <code>property</code> attributes.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>locale</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>locale</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>The name of the session scope bean under which our currently
          selected <code>Locale</code> object is stored.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>name</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>name</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>Specifies the attribute name of the bean whose property is accessed
          to retrieve the value specified by <code>property</code> (if
          specified).  If <code>property</code> is not specified, the value of
          this bean itself will be used as the message resource key.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>property</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>property</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>Specifies the name of the property to be accessed on the bean
          specified by <code>name</code>.  This value may be a simple, indexed,
          or nested property reference expression.  If not specified, the value
          of the bean identified by <code>name</code> will itself be used as the
          message resource key.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>scope</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>scope</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>Specifies the variable scope searched to retrieve the bean specified
          by <code>name</code>.  If not specified, the default rules applied by
          <code>PageContext.findAttribute()</code> are applied.</p>
          ]]>
-         </description>
-      </attribute>
-   </tag>
-   <tag>
-      <name>page</name>
-      <tag-class>org.apache.strutsel.taglib.bean.ELPageTag</tag-class>
-      <body-content>empty</body-content>
-      <description>
-      <![CDATA[
+            </description>
+        </attribute>
+    </tag>
+    <tag>
+        <name>page</name>
+        <tag-class>org.apache.strutsel.taglib.bean.ELPageTag</tag-class>
+        <body-content>empty</body-content>
+        <description>
+            <![CDATA[
       <p><strong>Expose a specified item from the page context as a bean.
       </strong></p>
       <p>Retrieve the value of the specified item from the page context
@@ -300,40 +300,40 @@
       <p>If a problem occurs while retrieving the specified configuration
       object, a request time exception will be thrown.</p>
       ]]>
-      </description>
-      <attribute>
-         <name>id</name>
-         <required>true</required>
-         <rtexprvalue>false</rtexprvalue>
-         <description>
-         <![CDATA[
+        </description>
+        <attribute>
+            <name>id</name>
+            <required>true</required>
+            <rtexprvalue>false</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>Specifies the name of the scripting variable (and associated
          page scope attribute) that will be made available with the value of
          the specified page context property.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>property</name>
-         <required>true</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>property</name>
+            <required>true</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>Name of the property from our page context to be retrieved and
          exposed.  Must be one of <code>application</code>, <code>config</code>,
          <code>request</code>, <code>response</code>, or <code>session</code>.
          </p>
          ]]>
-         </description>
-      </attribute>
-   </tag>
-   <tag>
-      <name>resource</name>
-      <tag-class>org.apache.strutsel.taglib.bean.ELResourceTag</tag-class>
-      <tei-class>org.apache.struts.taglib.bean.ResourceTei</tei-class>
-      <body-content>empty</body-content>
-      <description>
-      <![CDATA[
+            </description>
+        </attribute>
+    </tag>
+    <tag>
+        <name>resource</name>
+        <tag-class>org.apache.strutsel.taglib.bean.ELResourceTag</tag-class>
+        <tei-class>org.apache.struts.taglib.bean.ResourceTei</tei-class>
+        <body-content>empty</body-content>
+        <description>
+            <![CDATA[
       <p><strong>Load a web application resource and make it available as a 
       bean.</strong></p>
       <p>Retrieve the value of the specified web application resource, and make
@@ -343,51 +343,51 @@
       <p>If a problem occurs while retrieving the specified resource, a
       request time exception will be thrown.</p>
       ]]>
-      </description>
-      <attribute>
-         <name>id</name>
-         <required>true</required>
-         <rtexprvalue>false</rtexprvalue>
-         <description>
-         <![CDATA[
+        </description>
+        <attribute>
+            <name>id</name>
+            <required>true</required>
+            <rtexprvalue>false</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>Specifies the name of the scripting variable (and associated page
          scope attribute) that will be made available with the value of the
          specified web application resource.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>input</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>input</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>If any arbitrary value for this attribute is specified, the resource
          will be made available as an <code>InputStream</code>.  If this
          attribute is not specified, the resource will be made available
          as a <code>String</code>.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>name</name>
-         <required>true</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>name</name>
+            <required>true</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>Module-relative name (starting with a '/') of the web application
          resource to be loaded and made available.</p>
          ]]>
-         </description>
-      </attribute>
-   </tag>
-   <tag>
-      <name>size</name>
-      <tag-class>org.apache.strutsel.taglib.bean.ELSizeTag</tag-class>
-      <tei-class>org.apache.struts.taglib.bean.SizeTei</tei-class>
-      <body-content>empty</body-content>
-      <description>
-      <![CDATA[
+            </description>
+        </attribute>
+    </tag>
+    <tag>
+        <name>size</name>
+        <tag-class>org.apache.strutsel.taglib.bean.ELSizeTag</tag-class>
+        <tei-class>org.apache.struts.taglib.bean.SizeTei</tei-class>
+        <body-content>empty</body-content>
+        <description>
+            <![CDATA[
       <p><strong>Define a bean containing the number of elements in a 
       Collection or Map.</strong></p>
       <p>Given a reference to an array, Collection or Map, creates a new bean,
@@ -402,76 +402,76 @@
             of the JSP bean specified by the <code>name</code> attribute.</li>
          </ul>
       ]]>
-      </description>
-      <attribute>
-         <name>collection</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+        </description>
+        <attribute>
+            <name>collection</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>A runtime expression that evaluates to an array, a Collection, or
          a Map.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>id</name>
-         <required>true</required>
-         <rtexprvalue>false</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>id</name>
+            <required>true</required>
+            <rtexprvalue>false</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>The name of a page scope JSP bean, of type
          <code>java.lang.Integer</code>, that will be created to contain the
          size of the underlying collection being counted.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>name</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>name</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>The name of the JSP bean (optionally constrained to the scope
          specified by the <code>scope</code> attribute) that contains the
          collection to be counted (if <code>property</code> is not specified),
          or whose property getter is called to return the collection to be
          counted (if <code>property</code> is specified.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>property</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>property</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>The name of the property, of the bean specified by the
          <code>name</code> attribute, whose getter method will return the
          collection to be counted.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>scope</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>scope</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>The bean scope within which to search for the JSP bean specified
          by the <code>name</code> attribute.  If not specified, the available
          scopes are searched in ascending sequence.</p>
          ]]>
-         </description>
-      </attribute>
-   </tag>
-   <tag>
-      <name>struts</name>
-      <tag-class>org.apache.strutsel.taglib.bean.ELStrutsTag</tag-class>
-      <tei-class>org.apache.struts.taglib.bean.StrutsTei</tei-class>
-      <body-content>empty</body-content>
-      <description>
-      <![CDATA[
+            </description>
+        </attribute>
+    </tag>
+    <tag>
+        <name>struts</name>
+        <tag-class>org.apache.strutsel.taglib.bean.ELStrutsTag</tag-class>
+        <tei-class>org.apache.struts.taglib.bean.StrutsTei</tei-class>
+        <body-content>empty</body-content>
+        <description>
+            <![CDATA[
       <p><strong>Expose a named Struts internal configuration object as a bean.
       </strong></p>
       <p>Retrieve the value of the specified Struts internal configuration
@@ -483,53 +483,53 @@
       <p>If a problem occurs while retrieving the specified configuration
       object, a request time exception will be thrown.</p>
       ]]>
-      </description>
-      <attribute>
-         <name>id</name>
-         <required>true</required>
-         <rtexprvalue>false</rtexprvalue>
-         <description>
-         <![CDATA[
+        </description>
+        <attribute>
+            <name>id</name>
+            <required>true</required>
+            <rtexprvalue>false</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>Specifies the name of the scripting variable (and associated
          page scope attribute) that will be made available with the value of
          the specified Struts internal configuration object.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>formBean</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>formBean</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>Specifies the name of the Struts <code>ActionFormBean</code>
          definition object to be exposed.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>forward</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>forward</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>Specifies the name of the global Struts <code>ActionForward</code>
          definition object to be exposed.</p>
          ]]>
-         </description>
-      </attribute>
-      <attribute>
-         <name>mapping</name>
-         <required>false</required>
-         <rtexprvalue>true</rtexprvalue>
-         <description>
-         <![CDATA[
+            </description>
+        </attribute>
+        <attribute>
+            <name>mapping</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+            <description>
+                <![CDATA[
          <p>Specifies the matching path of the Struts <code>ActionMapping</code>
          definition object to be exposed.</p>
          ]]>
-         </description>
-      </attribute>
-   </tag>
+            </description>
+        </attribute>
+    </tag>
 </taglib>
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org