[Jsptest-svn-commits] SF.net SVN: jsptest: [175]
Status: Alpha
Brought to you by:
lkoskela
From: <gdi...@us...> - 2007-10-05 18:33:42
|
Revision: 175 http://jsptest.svn.sourceforge.net/jsptest/?rev=175&view=rev Author: gdinwiddie Date: 2007-10-05 11:33:38 -0700 (Fri, 05 Oct 2007) Log Message: ----------- initial work toward getting jsptest to work for JSP 1.2 spec. So far the strategy has been to duplicate things for JSP 2.0 and hack them until the tests pass. The thought is that the duplication can be removed afterwards. Modified Paths: -------------- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/c-rt.tld trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/c.tld trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/fmt.tld trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/web.xml trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/x.tld Added Paths: ----------- branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/java/ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/java/net/ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/java/net/sf/ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/java/net/sf/jsptest/ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/java/net/sf/jsptest/acceptance/ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/java/net/sf/jsptest/acceptance/jsp/ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/java/net/sf/jsptest/acceptance/jsp/BasicJspTest.java branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/log4j.properties branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/index.jsp branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/name$_test-file2.jsp branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/sub/ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/sub/dir/ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/sub/dir/page_in_subdir.jsp Added: branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/java/net/sf/jsptest/acceptance/jsp/BasicJspTest.java =================================================================== --- branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/java/net/sf/jsptest/acceptance/jsp/BasicJspTest.java (rev 0) +++ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/java/net/sf/jsptest/acceptance/jsp/BasicJspTest.java 2007-10-05 18:33:38 UTC (rev 175) @@ -0,0 +1,58 @@ +package net.sf.jsptest.acceptance.jsp; + +import junit.framework.AssertionFailedError; +import net.sf.jsptest.HtmlTestCase; + +/** + * @author Lasse Koskela + */ +public class BasicJspTest extends HtmlTestCase { + + protected String getWebRoot() { + return "src/test/resources/websrc"; + } + + public void testRenderingTrivialJsp() throws Exception { + get("/index.jsp"); + output().shouldContain("Hello from Jasper"); + } + + public void testOutputAssertion() throws Exception { + get("/index.jsp"); + output().shouldContain("Hello from Jasper"); + try { + output().shouldContain("No such content"); + throw new RuntimeException("Assertion should've failed"); + } catch (AssertionFailedError expected) { + } + } + + public void testRenderingSameJspMultipleTimes() throws Exception { + for (int i = 0; i < 5; i++) { + get("/index.jsp"); + output().shouldContain("Hello from Jasper"); + } + } + + public void testJspFileWithSpecialCharactersInName() + throws Exception { + get("/name$_test-file2.jsp"); + output().shouldContain("Hello from Jasper"); + } + + public void testJspFileInSubDirectory() throws Exception { + get("/sub/dir/page_in_subdir.jsp"); + output().shouldContain("Hello from Jasper"); + } + + public void testJspPathNotStartingWithSlash() throws Exception { + try { + get("sub/dir/page_in_subdir.jsp"); + fail("JSP path not starting with a slash should raise an exception"); + } catch (AssertionFailedError pass) { + throw pass; + } catch (Throwable e) { + assertEquals(IllegalArgumentException.class, e.getClass()); + } + } +} Added: branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/log4j.properties =================================================================== --- branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/log4j.properties (rev 0) +++ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/log4j.properties 2007-10-05 18:33:38 UTC (rev 175) @@ -0,0 +1,8 @@ +log4j.rootCategory=INFO, CONSOLE + +log4j.category.org.apache.commons.logging=WARN +log4j.category.net.sf.jsptest=DEBUG + +log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender +log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout +log4j.appender.CONSOLE.layout.ConversionPattern=[%d{ISO8601}]%8.8p: %30.50c{6} -- %m%n Added: branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/index.jsp =================================================================== --- branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/index.jsp (rev 0) +++ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/index.jsp 2007-10-05 18:33:38 UTC (rev 175) @@ -0,0 +1,3 @@ +<%@ page language="Java" %> +Hello <%= "from" %> Jasper +The time is <%= new java.util.Date().toString() %> \ No newline at end of file Added: branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/name$_test-file2.jsp =================================================================== --- branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/name$_test-file2.jsp (rev 0) +++ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/name$_test-file2.jsp 2007-10-05 18:33:38 UTC (rev 175) @@ -0,0 +1,7 @@ +<%@ page language="Java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> +<html> + <body> + <p>Hello <%= "from" %> Jasper</p> + </body> +</html> \ No newline at end of file Added: branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/sub/dir/page_in_subdir.jsp =================================================================== --- branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/sub/dir/page_in_subdir.jsp (rev 0) +++ branches/multispecsupport.1.2/jsptest-acceptance/jsptest-acceptance-jsp12/src/test/resources/websrc/sub/dir/page_in_subdir.jsp 2007-10-05 18:33:38 UTC (rev 175) @@ -0,0 +1,7 @@ +<%@ page language="Java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> +<html> + <body> + <p>Hello <%= "from" %> Jasper</p> + </body> +</html> \ No newline at end of file Modified: trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/c-rt.tld =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/c-rt.tld 2007-10-03 04:18:06 UTC (rev 174) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/c-rt.tld 2007-10-05 18:33:38 UTC (rev 175) @@ -1,393 +1,393 @@ -<?xml version="1.0" encoding="ISO-8859-1" ?> -<!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.0</tlib-version> - <jsp-version>1.2</jsp-version> - <short-name>c_rt</short-name> - <uri>http://java.sun.com/jstl/core_rt</uri> - <display-name>JSTL core RT</display-name> - <description>JSTL 1.0 core library</description> - - <validator> - <validator-class> - org.apache.taglibs.standard.tlv.JstlCoreTLV - </validator-class> - <description> - Provides core validation features for JSTL tags. - </description> - </validator> - - <tag> - <name>catch</name> - <tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class> - <body-content>JSP</body-content> - <description> - Catches any Throwable that occurs in its body and optionally - exposes it. - </description> - <attribute> - <name>var</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - </tag> - - <tag> - <name>choose</name> - <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class> - <body-content>JSP</body-content> - <description> - Simple conditional tag that establishes a context for - mutually exclusive conditional operations, marked by - <when> and <otherwise> - </description> - </tag> - - <tag> - <name>if</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.IfTag</tag-class> - <body-content>JSP</body-content> - <description> - Simple conditional tag, which evalutes its body if the - supplied condition is true and optionally exposes a Boolean - scripting variable representing the evaluation of this condition - </description> - <attribute> - <name>test</name> - <required>true</required> - <rtexprvalue>true</rtexprvalue> - <type>boolean</type> - </attribute> - <attribute> - <name>var</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <name>scope</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - </tag> - - <tag> - <name>import</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.ImportTag</tag-class> - <tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class> - <body-content>JSP</body-content> - <description> - Retrieves an absolute or relative URL and exposes its contents - to either the page, a String in 'var', or a Reader in 'varReader'. - </description> - <attribute> - <name>url</name> - <required>true</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <name>var</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <name>scope</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <name>varReader</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <name>context</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <name>charEncoding</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - </tag> - - <tag> - <name>forEach</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.ForEachTag</tag-class> - <tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class> - <body-content>JSP</body-content> - <description> - The basic iteration tag, accepting many different - collection types and supporting subsetting and other - functionality - </description> - <attribute> - <name>items</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <type>java.lang.Object</type> - </attribute> - <attribute> - <name>begin</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <type>int</type> - </attribute> - <attribute> - <name>end</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <type>int</type> - </attribute> - <attribute> - <name>step</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <type>int</type> - </attribute> - <attribute> - <name>var</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <name>varStatus</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - </tag> - - <tag> - <name>forTokens</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.ForTokensTag</tag-class> - <body-content>JSP</body-content> - <description> - Iterates over tokens, separated by the supplied delimeters - </description> - <attribute> - <name>items</name> - <required>true</required> - <rtexprvalue>true</rtexprvalue> - <type>java.lang.String</type> - </attribute> - <attribute> - <name>delims</name> - <required>true</required> - <rtexprvalue>true</rtexprvalue> - <type>java.lang.String</type> - </attribute> - <attribute> - <name>begin</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <type>int</type> - </attribute> - <attribute> - <name>end</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <type>int</type> - </attribute> - <attribute> - <name>step</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <type>int</type> - </attribute> - <attribute> - <name>var</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <name>varStatus</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - </tag> - - <tag> - <name>out</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class> - <body-content>JSP</body-content> - <description> - Like <%= ... >, but for expressions. - </description> - <attribute> - <name>value</name> - <required>true</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <name>default</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <name>escapeXml</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - </tag> - - - <tag> - <name>otherwise</name> - <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class> - <body-content>JSP</body-content> - <description> - Subtag of <choose> that follows <when> tags - and runs only if all of the prior conditions evaluated to - 'false' - </description> - </tag> - - <tag> - <name>param</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.ParamTag</tag-class> - <body-content>JSP</body-content> - <description> - Adds a parameter to a containing 'import' tag's URL. - </description> - <attribute> - <name>name</name> - <required>true</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <name>value</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - </tag> - - <tag> - <name>redirect</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.RedirectTag</tag-class> - <body-content>JSP</body-content> - <description> - Redirects to a new URL. - </description> - <attribute> - <name>var</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <name>scope</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <name>url</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <name>context</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - </tag> - - <tag> - <name>remove</name> - <tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class> - <body-content>empty</body-content> - <description> - Removes a scoped variable (from a particular scope, if specified). - </description> - <attribute> - <name>var</name> - <required>true</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <name>scope</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - </tag> - - <tag> - <name>set</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.SetTag</tag-class> - <body-content>JSP</body-content> - <description> - Sets the result of an expression evaluation in a 'scope' - </description> - <attribute> - <name>var</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <name>value</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <name>target</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <name>property</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <name>scope</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - </tag> - - <tag> - <name>url</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.UrlTag</tag-class> - <body-content>JSP</body-content> - <description> - Creates a URL with optional query parameters. - </description> - <attribute> - <name>var</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <name>scope</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <name>value</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <name>context</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - </tag> - - <tag> - <name>when</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.WhenTag</tag-class> - <body-content>JSP</body-content> - <description> - Subtag of <choose> that includes its body if its - condition evalutes to 'true' - </description> - <attribute> - <name>test</name> - <required>true</required> - <rtexprvalue>true</rtexprvalue> - <type>boolean</type> - </attribute> - </tag> - -</taglib> +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!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.0</tlib-version> + <jsp-version>1.2</jsp-version> + <short-name>c_rt</short-name> + <uri>http://java.sun.com/jstl/core_rt</uri> + <display-name>JSTL core RT</display-name> + <description>JSTL 1.0 core library</description> + + <validator> + <validator-class> + org.apache.taglibs.standard.tlv.JstlCoreTLV + </validator-class> + <description> + Provides core validation features for JSTL tags. + </description> + </validator> + + <tag> + <name>catch</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class> + <body-content>JSP</body-content> + <description> + Catches any Throwable that occurs in its body and optionally + exposes it. + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>choose</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class> + <body-content>JSP</body-content> + <description> + Simple conditional tag that establishes a context for + mutually exclusive conditional operations, marked by + <when> and <otherwise> + </description> + </tag> + + <tag> + <name>if</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.IfTag</tag-class> + <body-content>JSP</body-content> + <description> + Simple conditional tag, which evalutes its body if the + supplied condition is true and optionally exposes a Boolean + scripting variable representing the evaluation of this condition + </description> + <attribute> + <name>test</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + <type>boolean</type> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>import</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.ImportTag</tag-class> + <tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class> + <body-content>JSP</body-content> + <description> + Retrieves an absolute or relative URL and exposes its contents + to either the page, a String in 'var', or a Reader in 'varReader'. + </description> + <attribute> + <name>url</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>varReader</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>context</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>charEncoding</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>forEach</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.ForEachTag</tag-class> + <tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class> + <body-content>JSP</body-content> + <description> + The basic iteration tag, accepting many different + collection types and supporting subsetting and other + functionality + </description> + <attribute> + <name>items</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>java.lang.Object</type> + </attribute> + <attribute> + <name>begin</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>int</type> + </attribute> + <attribute> + <name>end</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>int</type> + </attribute> + <attribute> + <name>step</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>int</type> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>varStatus</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>forTokens</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.ForTokensTag</tag-class> + <body-content>JSP</body-content> + <description> + Iterates over tokens, separated by the supplied delimeters + </description> + <attribute> + <name>items</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + <type>java.lang.String</type> + </attribute> + <attribute> + <name>delims</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + <type>java.lang.String</type> + </attribute> + <attribute> + <name>begin</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>int</type> + </attribute> + <attribute> + <name>end</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>int</type> + </attribute> + <attribute> + <name>step</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <type>int</type> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>varStatus</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>out</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class> + <body-content>JSP</body-content> + <description> + Like <%= ... >, but for expressions. + </description> + <attribute> + <name>value</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>default</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>escapeXml</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + + <tag> + <name>otherwise</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class> + <body-content>JSP</body-content> + <description> + Subtag of <choose> that follows <when> tags + and runs only if all of the prior conditions evaluated to + 'false' + </description> + </tag> + + <tag> + <name>param</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.ParamTag</tag-class> + <body-content>JSP</body-content> + <description> + Adds a parameter to a containing 'import' tag's URL. + </description> + <attribute> + <name>name</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>redirect</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.RedirectTag</tag-class> + <body-content>JSP</body-content> + <description> + Redirects to a new URL. + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>url</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>context</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>remove</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class> + <body-content>empty</body-content> + <description> + Removes a scoped variable (from a particular scope, if specified). + </description> + <attribute> + <name>var</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>set</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.SetTag</tag-class> + <body-content>JSP</body-content> + <description> + Sets the result of an expression evaluation in a 'scope' + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>target</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>property</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>url</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.UrlTag</tag-class> + <body-content>JSP</body-content> + <description> + Creates a URL with optional query parameters. + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + <attribute> + <name>context</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>when</name> + <tag-class>org.apache.taglibs.standard.tag.rt.core.WhenTag</tag-class> + <body-content>JSP</body-content> + <description> + Subtag of <choose> that includes its body if its + condition evalutes to 'true' + </description> + <attribute> + <name>test</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + <type>boolean</type> + </attribute> + </tag> + +</taglib> Modified: trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/c.tld =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/c.tld 2007-10-03 04:18:06 UTC (rev 174) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/c.tld 2007-10-05 18:33:38 UTC (rev 175) @@ -1,563 +1,416 @@ -<?xml version="1.0" encoding="UTF-8" ?> - -<taglib xmlns="http://java.sun.com/xml/ns/j2ee" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" - version="2.0"> - - <description>JSTL 1.1 core library</description> - <display-name>JSTL core</display-name> - <tlib-version>1.1</tlib-version> - <short-name>c</short-name> - <uri>http://java.sun.com/jsp/jstl/core</uri> - - <validator> - <description> - Provides core validation features for JSTL tags. - </description> - <validator-class> - org.apache.taglibs.standard.tlv.JstlCoreTLV - </validator-class> - </validator> - - <tag> - <description> - Catches any Throwable that occurs in its body and optionally - exposes it. - </description> - <name>catch</name> - <tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class> - <body-content>JSP</body-content> - <attribute> - <description> -Name of the exported scoped variable for the -exception thrown from a nested action. The type of the -scoped variable is the type of the exception thrown. - </description> - <name>var</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - </tag> - - <tag> - <description> - Simple conditional tag that establishes a context for - mutually exclusive conditional operations, marked by - <when> and <otherwise> - </description> - <name>choose</name> - <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class> - <body-content>JSP</body-content> - </tag> - - <tag> - <description> - Simple conditional tag, which evalutes its body if the - supplied condition is true and optionally exposes a Boolean - scripting variable representing the evaluation of this condition - </description> - <name>if</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.IfTag</tag-class> - <body-content>JSP</body-content> - <attribute> - <description> -The test condition that determines whether or -not the body content should be processed. - </description> - <name>test</name> - <required>true</required> - <rtexprvalue>true</rtexprvalue> - <type>boolean</type> - </attribute> - <attribute> - <description> -Name of the exported scoped variable for the -resulting value of the test condition. The type -of the scoped variable is Boolean. - </description> - <name>var</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <description> -Scope for var. - </description> - <name>scope</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - </tag> - - <tag> - <description> - Retrieves an absolute or relative URL and exposes its contents - to either the page, a String in 'var', or a Reader in 'varReader'. - </description> - <name>import</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.ImportTag</tag-class> - <tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class> - <body-content>JSP</body-content> - <attribute> - <description> -The URL of the resource to import. - </description> - <name>url</name> - <required>true</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <description> -Name of the exported scoped variable for the -resource's content. The type of the scoped -variable is String. - </description> - <name>var</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <description> -Scope for var. - </description> - <name>scope</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <description> -Name of the exported scoped variable for the -resource's content. The type of the scoped -variable is Reader. - </description> - <name>varReader</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <description> -Name of the context when accessing a relative -URL resource that belongs to a foreign -context. - </description> - <name>context</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <description> -Character encoding of the content at the input -resource. - </description> - <name>charEncoding</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - </tag> - - <tag> - <description> - The basic iteration tag, accepting many different - collection types and supporting subsetting and other - functionality - </description> - <name>forEach</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.ForEachTag</tag-class> - <tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class> - <body-content>JSP</body-content> - <attribute> - <description> -Collection of items to iterate over. - </description> - <name>items</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <type>java.lang.Object</type> - </attribute> - <attribute> - <description> -If items specified: -Iteration begins at the item located at the -specified index. First item of the collection has -index 0. -If items not specified: -Iteration begins with index set at the value -specified. - </description> - <name>begin</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <type>int</type> - </attribute> - <attribute> - <description> -If items specified: -Iteration ends at the item located at the -specified index (inclusive). -If items not specified: -Iteration ends when index reaches the value -specified. - </description> - <name>end</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <type>int</type> - </attribute> - <attribute> - <description> -Iteration will only process every step items of -the collection, starting with the first one. - </description> - <name>step</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <type>int</type> - </attribute> - <attribute> - <description> -Name of the exported scoped variable for the -current item of the iteration. This scoped -variable has nested visibility. Its type depends -on the object of the underlying collection. - </description> - <name>var</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <description> -Name of the exported scoped variable for the -status of the iteration. Object exported is of type -javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested -visibility. - </description> - <name>varStatus</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - </tag> - - <tag> - <description> - Iterates over tokens, separated by the supplied delimeters - </description> - <name>forTokens</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.ForTokensTag</tag-class> - <body-content>JSP</body-content> - <attribute> - <description> -String of tokens to iterate over. - </description> - <name>items</name> - <required>true</required> - <rtexprvalue>true</rtexprvalue> - <type>java.lang.String</type> - </attribute> - <attribute> - <description> -The set of delimiters (the characters that -separate the tokens in the string). - </description> - <name>delims</name> - <required>true</required> - <rtexprvalue>true</rtexprvalue> - <type>java.lang.String</type> - </attribute> - <attribute> - <description> -Iteration begins at the token located at the -specified index. First token has index 0. - </description> - <name>begin</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <type>int</type> - </attribute> - <attribute> - <description> -Iteration ends at the token located at the -specified index (inclusive). - </description> - <name>end</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <type>int</type> - </attribute> - <attribute> - <description> -Iteration will only process every step tokens -of the string, starting with the first one. - </description> - <name>step</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <type>int</type> - </attribute> - <attribute> - <description> -Name of the exported scoped variable for the -current item of the iteration. This scoped -variable has nested visibility. - </description> - <name>var</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <description> -Name of the exported scoped variable for the -status of the iteration. Object exported is of -type -javax.servlet.jsp.jstl.core.LoopTag -Status. This scoped variable has nested -visibility. - </description> - <name>varStatus</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - </tag> - - <tag> - <description> - Like <%= ... >, but for expressions. - </description> - <name>out</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class> - <body-content>JSP</body-content> - <attribute> - <description> -Expression to be evaluated. - </description> - <name>value</name> - <required>true</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <description> -Default value if the resulting value is null. - </description> - <name>default</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <description> -Determines whether characters <,>,&,'," in the -resulting string should be converted to their -corresponding character entity codes. Default value is -true. - </description> - <name>escapeXml</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - </tag> - - - <tag> - <description> - Subtag of <choose> that follows <when> tags - and runs only if all of the prior conditions evaluated to - 'false' - </description> - <name>otherwise</name> - <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class> - <body-content>JSP</body-content> - </tag> - - <tag> - <description> - Adds a parameter to a containing 'import' tag's URL. - </description> - <name>param</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.ParamTag</tag-class> - <body-content>JSP</body-content> - <attribute> - <description> -Name of the query string parameter. - </description> - <name>name</name> - <required>true</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <description> -Value of the parameter. - </description> - <name>value</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - </tag> - - <tag> - <description> - Redirects to a new URL. - </description> - <name>redirect</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.RedirectTag</tag-class> - <body-content>JSP</body-content> - <attribute> - <description> -The URL of the resource to redirect to. - </description> - <name>url</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <description> -Name of the context when redirecting to a relative URL -resource that belongs to a foreign context. - </description> - <name>context</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - </tag> - - <tag> - <description> - Removes a scoped variable (from a particular scope, if specified). - </description> - <name>remove</name> - <tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class> - <body-content>empty</body-content> - <attribute> - <description> -Name of the scoped variable to be removed. - </description> - <name>var</name> - <required>true</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <description> -Scope for var. - </description> - <name>scope</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - </tag> - - <tag> - <description> - Sets the result of an expression evaluation in a 'scope' - </description> - <name>set</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.SetTag</tag-class> - <body-content>JSP</body-content> - <attribute> - <description> -Name of the exported scoped variable to hold the value -specified in the action. The type of the scoped variable is -whatever type the value expression evaluates to. - </description> - <name>var</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <description> -Expression to be evaluated. - </description> - <name>value</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <description> -Target object whose property will be set. Must evaluate to -a JavaBeans object with setter property property, or to a -java.util.Map object. - </description> - <name>target</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <description> -Name of the property to be set in the target object. - </description> - <name>property</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <description> -Scope for var. - </description> - <name>scope</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - </tag> - - <tag> - <description> - Creates a URL with optional query parameters. - </description> - <name>url</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.UrlTag</tag-class> - <body-content>JSP</body-content> - <attribute> - <description> -Name of the exported scoped variable for the -processed url. The type of the scoped variable is -String. - </description> - <name>var</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <description> -Scope for var. - </description> - <name>scope</name> - <required>false</required> - <rtexprvalue>false</rtexprvalue> - </attribute> - <attribute> - <description> -URL to be processed. - </description> - <name>value</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - <attribute> - <description> -Name of the context when specifying a relative URL -resource that belongs to a foreign context. - </description> - <name>context</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - </attribute> - </tag> - - <tag> - <description> - Subtag of <choose> that includes its body if its - condition evalutes to 'true' - </description> - <name>when</name> - <tag-class>org.apache.taglibs.standard.tag.rt.core.WhenTag</tag-class> - <body-content>JSP</body-content> - <attribute> - <description> -The test condition that determines whether or not the -body content should be processed. - </description> - <name>test</name> - <required>true</required> - <rtexprvalue>true</rtexprvalue> - <type>boolean</type> - </attribute> - </tag> - -</taglib> +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!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.0</tlib-version> + <jsp-version>1.2</jsp-version> + <short-name>c</short-name> + <uri>http://java.sun.com/jstl/core</uri> + <display-name>JSTL core</display-name> + <description>JSTL 1.0 core library</description> + + <validator> + <validator-class> + org.apache.taglibs.standard.tlv.JstlCoreTLV + </validator-class> + <init-param> + <param-name>expressionAttributes</param-name> + <param-value> + out:value + out:default + out:escapeXml + if:test + import:url + import:context + import:charEncoding + forEach:items + forEach:begin + forEach:end + forEach:step + forTokens:items + forTokens:begin + forTokens:end + forTokens:step + param:encode + param:name + param:value + redirect:context + redirect:url + set:property + set:target + set:value + url:context + url:value + when:test + </param-value> + <description> + Whitespace-separated list of colon-separated token pairs + describing tag:attribute combinations that accept expressions. + The validator uses this information to determine which + attributes need their syntax validated. + </description> + </init-param> + </validator> + + <tag> + <name>catch</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class> + <body-content>JSP</body-content> + <description> + Catches any Throwable that occurs in its body and optionally + exposes it. + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>choose</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class> + <body-content>JSP</body-content> + <description> + Simple conditional tag that establishes a context for + mutually exclusive conditional operations, marked by + <when> and <otherwise> + </description> + </tag> + + <tag> + <name>out</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.OutTag</tag-class> + <body-content>JSP</body-content> + <description> + Like <%= ... >, but for expressions. + </description> + <attribute> + <name>value</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>default</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>escapeXml</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>if</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.IfTag</tag-class> + <body-content>JSP</body-content> + <description> + Simple conditional tag, which evalutes its body if the + supplied condition is true and optionally exposes a Boolean + scripting variable representing the evaluation of this condition + </description> + <attribute> + <name>test</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>import</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.ImportTag</tag-class> + <tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class> + <body-content>JSP</body-content> + <description> + Retrieves an absolute or relative URL and exposes its contents + to either the page, a String in 'var', or a Reader in 'varReader'. + </description> + <attribute> + <name>url</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>varReader</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>context</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>charEncoding</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>forEach</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.ForEachTag</tag-class> + <tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class> + <body-content>JSP</body-content> + <description> + The basic iteration tag, accepting many different + collection types and supporting subsetting and other + functionality + </description> + <attribute> + <name>items</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>begin</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>end</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>step</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>varStatus</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>forTokens</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.ForTokensTag</tag-class> + <body-content>JSP</body-content> + <description> + Iterates over tokens, separated by the supplied delimeters + </description> + <attribute> + <name>items</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>delims</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>begin</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>end</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>step</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>varStatus</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>otherwise</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class> + <body-content>JSP</body-content> + <description> + Subtag of <choose> that follows <when> tags + and runs only if all of the prior conditions evaluated to + 'false' + </description> + </tag> + + <tag> + <name>param</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.ParamTag</tag-class> + <body-content>JSP</body-content> + <description> + Adds a parameter to a containing 'import' tag's URL. + </description> + <attribute> + <name>name</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>redirect</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.RedirectTag</tag-class> + <body-content>JSP</body-content> + <description> + Redirects to a new URL. + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>url</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>context</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>remove</name> + <tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class> + <body-content>empty</body-content> + <description> + Removes a scoped variable (from a particular scope, if specified). + </description> + <attribute> + <name>var</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>set</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.SetTag</tag-class> + <body-content>JSP</body-content> + <description> + Sets the result of an expression evaluation in a 'scope' + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>target</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>property</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>url</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.UrlTag</tag-class> + <body-content>JSP</body-content> + <description> + Prints or exposes a URL with optional query parameters + (via the c:param tag). + </description> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>value</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>context</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>when</name> + <tag-class>org.apache.taglibs.standard.tag.el.core.WhenTag</tag-class> + <body-content>JSP</body-content> + <description> + Subtag of <choose> that includes its body if its + condition evalutes to 'true' + </description> + <attribute> + <name>test</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + +</taglib> \ No newline at end of file Modified: trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/fmt.tld =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/fmt.tld 2007-10-03 04:18:06 UTC (rev 174) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/resources/websrc/WEB-INF/fmt.tld 2007-10-05 18:33:38 UTC (rev 175) @@ -1,671 +1,442 @@ -<?xml version="1.0" encoding="UTF-8" ?> - -<taglib xmlns="http://java.sun.com/xml/ns/j2ee" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" - version="2.0"> - - <description>JSTL 1.1 i18n-capable formatting library</description> - <display-name>JSTL fmt</display-name> - <tlib-version>1.1</tlib-version> - <short-name>fmt</short-name> - <uri>http://java.sun.com/jsp/jstl/fmt</uri> - - <validator> - <description> - Provides core validation features for JSTL tags. - <... [truncated message content] |