Author: dsakovich
Date: 2008-02-11 09:19:34 -0500 (Mon, 11 Feb 2008)
New Revision: 6240
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/.classpath
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/.project
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/META-INF/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/bin/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/build.properties
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.classpath
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.project
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jdt.core.prefs
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jst.common.project.facet.core.prefs
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.component
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/META-INF/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/c.tld
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fmt.tld
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fn.tld
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/lib/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/lib/jstl.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/lib/standard.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/permittedTaglibs.tld
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/scriptfree.tld
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/sql.tld
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/catalog.tag
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/double.tag
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/web.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/x.tld
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/attribute.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/body.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/declaration.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_absolute.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_relative.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_page.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_tag.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_taglib.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/doBody.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/element.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/expression.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward1.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/get_property.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_absolute.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_relative.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/output.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/plugin.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/root.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/scriptlet.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/set_property.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/text.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/useBean.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/AnalogClock.class
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/CustomParser.class
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/JavaClock.class
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/ParamParser.class
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/jboss/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/jboss/jsp/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/jboss/jsp/test/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/jboss/jsp/test/Calendar.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPComponentTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPTestPlugin.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1688
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/.classpath
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/.classpath
(rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/.classpath 2008-02-11 14:19:34 UTC
(rev 6240)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/.project
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/.project (rev
0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/.project 2008-02-11 14:19:34 UTC (rev
6240)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.jsf.vpe.jsp.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/META-INF/MANIFEST.MF
(rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/META-INF/MANIFEST.MF 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,20 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Test Plug-in
+Bundle-SymbolicName: org.jboss.tools.jsf.vpe.jsp.test;singleton:=true
+Bundle-Version: 1.0.0
+Bundle-Activator: org.jboss.tools.jsf.vpe.jsp.test.JSPTestPlugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.jboss.tools.vpe,
+ org.junit,
+ org.eclipse.core.resources,
+ org.eclipse.ui.ide,
+ org.jboss.tools.common,
+ org.jboss.tools.jsf.vpe.ui.test,
+ org.jboss.tools.jst.jsp,
+ org.jboss.tools.vpe.xulrunner,
+ org.mozilla.xpcom
+Eclipse-LazyStart: true
+Export-Package: org.jboss.tools.jsf.vpe.jsp.test
+Bundle-ClassPath: jsp-tests.jar
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/build.properties
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/build.properties
(rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/build.properties 2008-02-11 14:19:34
UTC (rev 6240)
@@ -0,0 +1,11 @@
+bin.includes = META-INF/,\
+ jsp-tests.jar,\
+ plugin.xml,\
+ resources/
+jars.compile.order = jsp-tests.jar
+source.jsp-tests.jar = src/
+output.jsp-tests.jar = bin/
+src.includes = META-INF/,\
+ build.properties,\
+ src/,\
+ resources/
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/plugin.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/plugin.xml
(rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/plugin.xml 2008-02-11 14:19:34 UTC
(rev 6240)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+ <extension
+ point="org.jboss.tools.jsf.vpe.ui.tests">
+ <tests
+ description="JSP Tests"
+ name="JSP Tests"
+ testSuite="org.jboss.tools.jsf.vpe.jsp.test.JSPAllTests">
+ </tests>
+ </extension>
+
+</plugin>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.classpath
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.classpath
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.classpath 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache
Tomcat v6.0"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.project
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.project
(rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.project 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>jspTest</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ </natures>
+</projectDescription>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jdt.core.prefs 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,7 @@
+#Tue Feb 05 16:02:57 GMT+02:00 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jst.common.project.facet.core.prefs
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jst.common.project.facet.core.prefs
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jst.common.project.facet.core.prefs 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,4 @@
+#Tue Feb 05 16:02:58 GMT+02:00 2008
+classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER/owners=jst.java\:5.0
+classpath.helper/org.eclipse.jst.server.core.container\:\:org.eclipse.jst.server.tomcat.runtimeTarget\:\:Apache\
Tomcat\ v6.0/owners=jst.web\:2.5
+eclipse.preferences.version=1
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.component
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.component
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.component 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="jspTest">
+<wb-resource deploy-path="/" source-path="/WebContent"/>
+<wb-resource deploy-path="/WEB-INF/classes"
source-path="/src"/>
+<property name="context-root" value="jspTest"/>
+<property name="java-output-path" value="build/classes"/>
+</wb-module>
+</project-modules>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.project.facet.core.xml 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="Apache Tomcat v6.0"/>
+ <fixed facet="jst.web"/>
+ <fixed facet="jst.java"/>
+ <installed facet="jst.java" version="5.0"/>
+ <installed facet="jst.web" version="2.5"/>
+</faceted-project>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/META-INF/MANIFEST.MF
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/META-INF/MANIFEST.MF 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/c.tld
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/c.tld
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/c.tld 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,563 @@
+<?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>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fmt.tld
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fmt.tld
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fmt.tld 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,671 @@
+<?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.
+ </description>
+ <validator-class>
+ org.apache.taglibs.standard.tlv.JstlFmtTLV
+ </validator-class>
+ </validator>
+
+ <tag>
+ <description>
+ Sets the request character encoding
+ </description>
+ <name>requestEncoding</name>
+
<tag-class>org.apache.taglibs.standard.tag.rt.fmt.RequestEncodingTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+Name of character encoding to be applied when
+decoding request parameters.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Stores the given locale in the locale configuration variable
+ </description>
+ <name>setLocale</name>
+
<tag-class>org.apache.taglibs.standard.tag.rt.fmt.SetLocaleTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+A String value is interpreted as the
+printable representation of a locale, which
+must contain a two-letter (lower-case)
+language code (as defined by ISO-639),
+and may contain a two-letter (upper-case)
+country code (as defined by ISO-3166).
+Language and country codes must be
+separated by hyphen (-) or underscore
+(_).
+ </description>
+ <name>value</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Vendor- or browser-specific variant.
+See the java.util.Locale javadocs for
+more information on variants.
+ </description>
+ <name>variant</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of the locale configuration variable.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Specifies the time zone for any time formatting or parsing actions
+ nested in its body
+ </description>
+ <name>timeZone</name>
+
<tag-class>org.apache.taglibs.standard.tag.rt.fmt.TimeZoneTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+The time zone. A String value is interpreted as
+a time zone ID. This may be one of the time zone
+IDs supported by the Java platform (such as
+"America/Los_Angeles") or a custom time zone
+ID (such as "GMT-8"). See
+java.util.TimeZone for more information on
+supported time zone formats.
+ </description>
+ <name>value</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Stores the given time zone in the time zone configuration variable
+ </description>
+ <name>setTimeZone</name>
+
<tag-class>org.apache.taglibs.standard.tag.rt.fmt.SetTimeZoneTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+The time zone. A String value is interpreted as
+a time zone ID. This may be one of the time zone
+IDs supported by the Java platform (such as
+"America/Los_Angeles") or a custom time zone
+ID (such as "GMT-8"). See java.util.TimeZone for
+more information on supported time zone
+formats.
+ </description>
+ <name>value</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable which
+stores the time zone of type
+java.util.TimeZone.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var or the time zone configuration
+variable.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Loads a resource bundle to be used by its tag body
+ </description>
+ <name>bundle</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.fmt.BundleTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Resource bundle base name. This is the bundle's
+fully-qualified resource name, which has the same
+form as a fully-qualified class name, that is, it uses
+"." as the package component separator and does not
+have any file type (such as ".class" or ".properties")
+suffix.
+ </description>
+ <name>basename</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Prefix to be prepended to the value of the message
+key of any nested <fmt:message> action.
+ </description>
+ <name>prefix</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Loads a resource bundle and stores it in the named scoped variable or
+ the bundle configuration variable
+ </description>
+ <name>setBundle</name>
+
<tag-class>org.apache.taglibs.standard.tag.rt.fmt.SetBundleTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+Resource bundle base name. This is the bundle's
+fully-qualified resource name, which has the same
+form as a fully-qualified class name, that is, it uses
+"." as the package component separator and does not
+have any file type (such as ".class" or ".properties")
+suffix.
+ </description>
+ <name>basename</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable which stores
+the i18n localization context of type
+javax.servlet.jsp.jstl.fmt.LocalizationC
+ontext.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var or the localization context
+configuration variable.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Maps key to localized message and performs parametric replacement
+ </description>
+ <name>message</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.fmt.MessageTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Message key to be looked up.
+ </description>
+ <name>key</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Localization context in whose resource
+bundle the message key is looked up.
+ </description>
+ <name>bundle</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable
+which stores the localized message.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Supplies an argument for parametric replacement to a containing
+ <message> tag
+ </description>
+ <name>param</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.fmt.ParamTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Argument used for parametric replacement.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Formats a numeric value as a number, currency, or percentage
+ </description>
+ <name>formatNumber</name>
+
<tag-class>org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Numeric value to be formatted.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Specifies whether the value is to be
+formatted as number, currency, or
+percentage.
+ </description>
+ <name>type</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Custom formatting pattern.
+ </description>
+ <name>pattern</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+ISO 4217 currency code. Applied only
+when formatting currencies (i.e. if type is
+equal to "currency"); ignored otherwise.
+ </description>
+ <name>currencyCode</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Currency symbol. Applied only when
+formatting currencies (i.e. if type is equal
+to "currency"); ignored otherwise.
+ </description>
+ <name>currencySymbol</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Specifies whether the formatted output
+will contain any grouping separators.
+ </description>
+ <name>groupingUsed</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Maximum number of digits in the integer
+portion of the formatted output.
+ </description>
+ <name>maxIntegerDigits</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Minimum number of digits in the integer
+portion of the formatted output.
+ </description>
+ <name>minIntegerDigits</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Maximum number of digits in the
+fractional portion of the formatted output.
+ </description>
+ <name>maxFractionDigits</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Minimum number of digits in the
+fractional portion of the formatted output.
+ </description>
+ <name>minFractionDigits</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable
+which stores the formatted result as a
+String.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Parses the string representation of a number, currency, or percentage
+ </description>
+ <name>parseNumber</name>
+
<tag-class>org.apache.taglibs.standard.tag.rt.fmt.ParseNumberTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+String to be parsed.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Specifies whether the string in the value
+attribute should be parsed as a number,
+currency, or percentage.
+ </description>
+ <name>type</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Custom formatting pattern that determines
+how the string in the value attribute is to be
+parsed.
+ </description>
+ <name>pattern</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Locale whose default formatting pattern (for
+numbers, currencies, or percentages,
+respectively) is to be used during the parse
+operation, or to which the pattern specified
+via the pattern attribute (if present) is
+applied.
+ </description>
+ <name>parseLocale</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Specifies whether just the integer portion of
+the given value should be parsed.
+ </description>
+ <name>integerOnly</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable which
+stores the parsed result (of type
+java.lang.Number).
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Formats a date and/or time using the supplied styles and pattern
+ </description>
+ <name>formatDate</name>
+
<tag-class>org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+Date and/or time to be formatted.
+ </description>
+ <name>value</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Specifies whether the time, the date, or both
+the time and date components of the given
+date are to be formatted.
+ </description>
+ <name>type</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Predefined formatting style for dates. Follows
+the semantics defined in class
+java.text.DateFormat. Applied only
+when formatting a date or both a date and
+time (i.e. if type is missing or is equal to
+"date" or "both"); ignored otherwise.
+ </description>
+ <name>dateStyle</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Predefined formatting style for times. Follows
+the semantics defined in class
+java.text.DateFormat. Applied only
+when formatting a time or both a date and
+time (i.e. if type is equal to "time" or "both");
+ignored otherwise.
+ </description>
+ <name>timeStyle</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Custom formatting style for dates and times.
+ </description>
+ <name>pattern</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Time zone in which to represent the formatted
+time.
+ </description>
+ <name>timeZone</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable which
+stores the formatted result as a String.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Parses the string representation of a date and/or time
+ </description>
+ <name>parseDate</name>
+
<tag-class>org.apache.taglibs.standard.tag.rt.fmt.ParseDateTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Date string to be parsed.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Specifies whether the date string in the
+value attribute is supposed to contain a
+time, a date, or both.
+ </description>
+ <name>type</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Predefined formatting style for days
+which determines how the date
+component of the date string is to be
+parsed. Applied only when formatting a
+date or both a date and time (i.e. if type
+is missing or is equal to "date" or "both");
+ignored otherwise.
+ </description>
+ <name>dateStyle</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Predefined formatting styles for times
+which determines how the time
+component in the date string is to be
+parsed. Applied only when formatting a
+time or both a date and time (i.e. if type
+is equal to "time" or "both"); ignored
+otherwise.
+ </description>
+ <name>timeStyle</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Custom formatting pattern which
+determines how the date string is to be
+parsed.
+ </description>
+ <name>pattern</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Time zone in which to interpret any time
+information in the date string.
+ </description>
+ <name>timeZone</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Locale whose predefined formatting styles
+for dates and times are to be used during
+the parse operation, or to which the
+pattern specified via the pattern
+attribute (if present) is applied.
+ </description>
+ <name>parseLocale</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable in
+which the parsing result (of type
+java.util.Date) is stored.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+</taglib>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fn.tld
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fn.tld
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fn.tld 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,207 @@
+<?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 functions library</description>
+ <display-name>JSTL functions</display-name>
+ <tlib-version>1.1</tlib-version>
+ <short-name>fn</short-name>
+ <
uri>http://java.sun.com/jsp/jstl/functions</uri>
+
+ <function>
+ <description>
+ Tests if an input string contains the specified substring.
+ </description>
+ <name>contains</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>boolean contains(java.lang.String,
java.lang.String)</function-signature>
+ <example>
+ <c:if test="${fn:contains(name, searchString)}">
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Tests if an input string contains the specified substring in a case insensitive
way.
+ </description>
+ <name>containsIgnoreCase</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>boolean containsIgnoreCase(java.lang.String,
java.lang.String)</function-signature>
+ <example>
+ <c:if test="${fn:containsIgnoreCase(name, searchString)}">
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Tests if an input string ends with the specified suffix.
+ </description>
+ <name>endsWith</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>boolean endsWith(java.lang.String,
java.lang.String)</function-signature>
+ <example>
+ <c:if test="${fn:endsWith(filename, ".txt")}">
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Escapes characters that could be interpreted as XML markup.
+ </description>
+ <name>escapeXml</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String
escapeXml(java.lang.String)</function-signature>
+ <example>
+ ${fn:escapeXml(param:info)}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Returns the index withing a string of the first occurrence of a specified
substring.
+ </description>
+ <name>indexOf</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>int indexOf(java.lang.String,
java.lang.String)</function-signature>
+ <example>
+ ${fn:indexOf(name, "-")}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Joins all elements of an array into a string.
+ </description>
+ <name>join</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String join(java.lang.String[],
java.lang.String)</function-signature>
+ <example>
+ ${fn:join(array, ";")}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Returns the number of items in a collection, or the number of characters in a
string.
+ </description>
+ <name>length</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>int length(java.lang.Object)</function-signature>
+ <example>
+ You have ${fn:length(shoppingCart.products)} in your shopping cart.
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Returns a string resulting from replacing in an input string all occurrences
+ of a "before" string into an "after" substring.
+ </description>
+ <name>replace</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String replace(java.lang.String,
java.lang.String, java.lang.String)</function-signature>
+ <example>
+ ${fn:replace(text, "-", "•")}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Splits a string into an array of substrings.
+ </description>
+ <name>split</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String[] split(java.lang.String,
java.lang.String)</function-signature>
+ <example>
+ ${fn:split(customerNames, ";")}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Tests if an input string starts with the specified prefix.
+ </description>
+ <name>startsWith</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>boolean startsWith(java.lang.String,
java.lang.String)</function-signature>
+ <example>
+ <c:if test="${fn:startsWith(product.id, "100-")}">
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Returns a subset of a string.
+ </description>
+ <name>substring</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String substring(java.lang.String, int,
int)</function-signature>
+ <example>
+ P.O. Box: ${fn:substring(zip, 6, -1)}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Returns a subset of a string following a specific substring.
+ </description>
+ <name>substringAfter</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String substringAfter(java.lang.String,
java.lang.String)</function-signature>
+ <example>
+ P.O. Box: ${fn:substringAfter(zip, "-")}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Returns a subset of a string before a specific substring.
+ </description>
+ <name>substringBefore</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String substringBefore(java.lang.String,
java.lang.String)</function-signature>
+ <example>
+ Zip (without P.O. Box): ${fn:substringBefore(zip, "-")}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Converts all of the characters of a string to lower case.
+ </description>
+ <name>toLowerCase</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String
toLowerCase(java.lang.String)</function-signature>
+ <example>
+ Product name: ${fn.toLowerCase(product.name)}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Converts all of the characters of a string to upper case.
+ </description>
+ <name>toUpperCase</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String
toUpperCase(java.lang.String)</function-signature>
+ <example>
+ Product name: ${fn.UpperCase(product.name)}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Removes white spaces from both ends of a string.
+ </description>
+ <name>trim</name>
+
<function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String
trim(java.lang.String)</function-signature>
+ <example>
+ Name: ${fn.trim(name)}
+ </example>
+ </function>
+
+</taglib>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/lib/jstl.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/lib/jstl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/lib/standard.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/lib/standard.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/permittedTaglibs.tld
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/permittedTaglibs.tld
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/permittedTaglibs.tld 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,34 @@
+<?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>
+ Restricts JSP pages to the JSTL tag libraries
+ </description>
+ <display-name>permittedTaglibs</display-name>
+ <tlib-version>1.1</tlib-version>
+ <short-name>permittedTaglibs</short-name>
+ <
uri>http://jakarta.apache.org/taglibs/standard/permittedTaglibs</ur...
+
+ <validator>
+ <validator-class>
+ javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV
+ </validator-class>
+ <init-param>
+ <description>
+ Whitespace-separated list of taglib URIs to permit. This example
+ TLD for the Standard Taglib allows only JSTL 'el' taglibs to be
+ imported.
+ </description>
+ <param-name>permittedTaglibs</param-name>
+ <param-value>
+
http://java.sun.com/jsp/jstl/core
+
http://java.sun.com/jsp/jstl/fmt
+
http://java.sun.com/jsp/jstl/sql
+
http://java.sun.com/jsp/jstl/xml
+ </param-value>
+ </init-param>
+ </validator>
+</taglib>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/scriptfree.tld
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/scriptfree.tld
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/scriptfree.tld 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,51 @@
+<?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>
+ Validates JSP pages to prohibit use of scripting elements.
+ </description>
+ <tlib-version>1.1</tlib-version>
+ <short-name>scriptfree</short-name>
+ <
uri>http://jakarta.apache.org/taglibs/standard/scriptfree</uri>
+
+ <validator>
+ <description>
+ Validates prohibitions against scripting elements.
+ </description>
+ <validator-class>
+ javax.servlet.jsp.jstl.tlv.ScriptFreeTLV
+ </validator-class>
+ <init-param>
+ <description>
+ Controls whether or not declarations are considered valid.
+ </description>
+ <param-name>allowDeclarations</param-name>
+ <param-value>false</param-value>
+ </init-param>
+ <init-param>
+ <description>
+ Controls whether or not scriptlets are considered valid.
+ </description>
+ <param-name>allowScriptlets</param-name>
+ <param-value>false</param-value>
+ </init-param>
+ <init-param>
+ <description>
+ Controls whether or not top-level expressions are considered valid.
+ </description>
+ <param-name>allowExpressions</param-name>
+ <param-value>false</param-value>
+ </init-param>
+ <init-param>
+ <description>
+ Controls whether or not expressions used to supply request-time
+ attribute values are considered valid.
+ </description>
+ <param-name>allowRTExpressions</param-name>
+ <param-value>false</param-value>
+ </init-param>
+ </validator>
+</taglib>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/sql.tld
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/sql.tld
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/sql.tld 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,289 @@
+<?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 sql library</description>
+ <display-name>JSTL sql</display-name>
+ <tlib-version>1.1</tlib-version>
+ <short-name>sql</short-name>
+ <
uri>http://java.sun.com/jsp/jstl/sql</uri>
+
+ <validator>
+ <description>
+ Provides core validation features for JSTL tags.
+ </description>
+ <validator-class>
+ org.apache.taglibs.standard.tlv.JstlSqlTLV
+ </validator-class>
+ </validator>
+
+ <tag>
+ <description>
+ Provides nested database action elements with a shared Connection,
+ set up to execute all statements as one transaction.
+ </description>
+ <name>transaction</name>
+
<tag-class>org.apache.taglibs.standard.tag.rt.sql.TransactionTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+DataSource associated with the database to access. A
+String value represents a relative path to a JNDI
+resource or the parameters for the JDBC
+DriverManager facility.
+ </description>
+ <name>dataSource</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Transaction isolation level. If not specified, it is the
+isolation level the DataSource has been configured
+with.
+ </description>
+ <name>isolation</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Executes the SQL query defined in its body or through the
+ sql attribute.
+ </description>
+ <name>query</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.sql.QueryTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the
+query result. The type of the scoped variable is
+javax.servlet.jsp.jstl.sql.
+Result (see Chapter 16 "Java APIs").
+ </description>
+ <name>var</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+SQL query statement.
+ </description>
+ <name>sql</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Data source associated with the database to
+query. A String value represents a relative path
+to a JNDI resource or the parameters for the
+DriverManager class.
+ </description>
+ <name>dataSource</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+The returned Result object includes the rows
+starting at the specified index. The first row of
+the original query result set is at index 0. If not
+specified, rows are included starting from the
+first row at index 0.
+ </description>
+ <name>startRow</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+The maximum number of rows to be included in
+the query result. If not specified, or set to -1, no
+limit on the maximum number of rows is
+enforced.
+ </description>
+ <name>maxRows</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Executes the SQL update defined in its body or through the
+ sql attribute.
+ </description>
+ <name>update</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.sql.UpdateTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the result
+of the database update. The type of the scoped
+variable is java.lang.Integer.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+SQL update statement.
+ </description>
+ <name>sql</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Data source associated with the database to update.
+A String value represents a relative path to a JNDI
+resource or the parameters for the JDBC
+DriverManager class.
+ </description>
+ <name>dataSource</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Sets a parameter in an SQL statement to the specified value.
+ </description>
+ <name>param</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.sql.ParamTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Parameter value.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Sets a parameter in an SQL statement to the specified java.util.Date value.
+ </description>
+ <name>dateParam</name>
+
<tag-class>org.apache.taglibs.standard.tag.rt.sql.DateParamTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+Parameter value for DATE, TIME, or
+TIMESTAMP column in a database table.
+ </description>
+ <name>value</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+One of "date", "time" or "timestamp".
+ </description>
+ <name>type</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Creates a simple DataSource suitable only for prototyping.
+ </description>
+ <name>setDataSource</name>
+
<tag-class>org.apache.taglibs.standard.tag.rt.sql.SetDataSourceTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+Name of the exported scoped variable
+for the data source specified. Type can
+be String or DataSource.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+If var is specified, scope of the
+exported variable. Otherwise, scope of
+the data source configuration variable.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Data source. If specified as a string, it
+can either be a relative path to a JNDI
+resource, or a JDBC parameters string
+as defined in Section 10.1.1.
+ </description>
+ <name>dataSource</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+JDBC parameter: driver class name.
+ </description>
+ <name>driver</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+JDBC parameter: URL associated with
+the database.
+ </description>
+ <name>url</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+JDBC parameter: database user on
+whose behalf the connection to the
+database is being made.
+ </description>
+ <name>user</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+JDBC parameter: user password
+ </description>
+ <name>password</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+</taglib>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/catalog.tag
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/catalog.tag
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/catalog.tag 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,46 @@
+<jsp:directive.taglib
uri="http://java.sun.com/jsp/jstl/core"
prefix="c" %>
+<jsp:directive.taglib
uri="http://java.sun.com/jsp/jstl/fmt"
prefix="fmt" %>
+
+<jsp:directive.attribute name="bookDB" required="true"
type="com.sun.bookstore3.database.BookDB" %>
+<jsp:directive.attribute name="color" required="true" />
+<jsp:directive.attribute name="normalPrice" fragment="true" />
+<jsp:directive.attribute name="onSale" fragment="true" />
+<jsp:directive.variable name-given="price" />
+<jsp:directive.variable name-given="salePrice" />
+
+<center>
+<table summary="layout">
+<c:forEach var="book" begin="0"
items="${bookDB.books}">
+ <tr>
+ <c:set var="bookId" value="${book.bookId}" />
+ <td bgcolor="${color}">
+ <c:url var="url" value="/bookdetails" >
+ <c:param name="bookId" value="${bookId}" />
+ </c:url>
+ <a
href="${url}"><strong>${book.title} </strong></a></td>
+ <td bgcolor="${color}" rowspan=2>
+
+ <c:set var="salePrice" value="${book.price * .85}" />
+ <c:set var="price" value="${book.price}" />
+ <c:choose>
+ <c:when test="${book.onSale}" >
+ <jsp:invoke fragment="onSale" />
+ </c:when>
+ <c:otherwise>
+ <jsp:invoke fragment="normalPrice" />
+ </c:otherwise>
+ </c:choose>
+ </td>
+ <td bgcolor="${color}" rowspan=2>
+ <c:url var="url" value="/bookcatalog" >
+ <c:param name="Add" value="${bookId}" />
+ </c:url>
+ <p><strong><a href="${url}"> <fmt:message
key="CartAdd"/> </a></td></tr>
+ <tr>
+ <td bgcolor="#ffffff">
+ <fmt:message key="By"/>
<em>${book.firstName} ${book.surname}</em></td></tr>
+</c:forEach>
+</table>
+</center>
+
+
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/double.tag
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/double.tag
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/double.tag 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,3 @@
+<%-- double.tag --%>
+<jsp:doBody />
+<jsp:doBody />
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/web.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/web.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/web.xml 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
version="2.5">
+ <display-name>jspTest</display-name>
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ <welcome-file>index.htm</welcome-file>
+ <welcome-file>index.jsp</welcome-file>
+ <welcome-file>default.html</welcome-file>
+ <welcome-file>default.htm</welcome-file>
+ <welcome-file>default.jsp</welcome-file>
+ </welcome-file-list>
+</web-app>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/x.tld
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/x.tld
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/x.tld 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,448 @@
+<?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 XML library</description>
+ <display-name>JSTL XML</display-name>
+ <tlib-version>1.1</tlib-version>
+ <short-name>x</short-name>
+ <
uri>http://java.sun.com/jsp/jstl/xml</uri>
+
+ <validator>
+ <description>
+ Provides validation features for JSTL XML tags.
+ </description>
+ <validator-class>
+ org.apache.taglibs.standard.tlv.JstlXmlTLV
+ </validator-class>
+ </validator>
+
+ <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>
+ Like <%= ... >, but for XPath expressions.
+ </description>
+ <name>out</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.xml.ExprTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+XPath expression to be evaluated.
+ </description>
+ <name>select</name>
+ <required>true</required>
+ <rtexprvalue>false</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>
+ XML conditional tag, which evalutes its body if the
+ supplied XPath expression evalutes to 'true' as a boolean
+ </description>
+ <name>if</name>
+ <tag-class>org.apache.taglibs.standard.tag.common.xml.IfTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+The test condition that tells whether or not the
+body content should be processed.
+ </description>
+ <name>select</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </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>
+ XML iteration tag.
+ </description>
+ <name>forEach</name>
+
<tag-class>org.apache.taglibs.standard.tag.common.xml.ForEachTag</tag-class>
+ <body-content>JSP</body-content>
+ <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
+result of the XPath expression in the select
+attribute.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+XPath expression to be evaluated.
+ </description>
+ <name>select</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Iteration begins at the item located at the
+specified index. First item of the collection has
+index 0.
+ </description>
+ <name>begin</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <type>int</type>
+ </attribute>
+ <attribute>
+ <description>
+Iteration ends at the item 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 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
+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>
+ 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 'transform' tag's Transformer
+ </description>
+ <name>param</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.xml.ParamTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Name of the transformation 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>
+ Parses XML content from 'source' attribute or 'body'
+ </description>
+ <name>parse</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.xml.ParseTag</tag-class>
+ <tei-class>org.apache.taglibs.standard.tei.XmlParseTEI</tei-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Name of the exported scoped variable for
+the parsed XML document. The type of the
+scoped variable is implementation
+dependent.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable for
+the parsed XML document. The type of the
+scoped variable is
+org.w3c.dom.Document.
+ </description>
+ <name>varDom</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>
+Scope for varDom.
+ </description>
+ <name>scopeDom</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Deprecated. Use attribute 'doc' instead.
+ </description>
+ <name>xml</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Source XML document to be parsed.
+ </description>
+ <name>doc</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+The system identifier (URI) for parsing the
+XML document.
+ </description>
+ <name>systemId</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Filter to be applied to the source
+document.
+ </description>
+ <name>filter</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Saves the result of an XPath expression evaluation in a 'scope'
+ </description>
+ <name>set</name>
+ <tag-class>org.apache.taglibs.standard.tag.common.xml.SetTag</tag-class>
+ <body-content>empty</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 select
+expression evaluates to.
+ </description>
+ <name>var</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+XPath expression to be evaluated.
+ </description>
+ <name>select</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>
+ Conducts a transformation given a source XML document
+ and an XSLT stylesheet
+ </description>
+ <name>transform</name>
+
<tag-class>org.apache.taglibs.standard.tag.rt.xml.TransformTag</tag-class>
+ <tei-class>org.apache.taglibs.standard.tei.XmlTransformTEI</tei-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Name of the exported
+scoped variable for the
+transformed XML
+document. The type of the
+scoped variable is
+org.w3c.dom.Document.
+ </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>
+Result
+Object that captures or
+processes the transformation
+result.
+ </description>
+ <name>result</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Deprecated. Use attribute
+'doc' instead.
+ </description>
+ <name>xml</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Source XML document to be
+transformed. (If exported by
+<x:set>, it must correspond
+to a well-formed XML
+document, not a partial
+document.)
+ </description>
+ <name>doc</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Deprecated. Use attribute
+'docSystemId' instead.
+ </description>
+ <name>xmlSystemId</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+The system identifier (URI)
+for parsing the XML
+document.
+ </description>
+ <name>docSystemId</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+javax.xml.transform.Source
+Transformation stylesheet as
+a String, Reader, or
+Source object.
+ </description>
+ <name>xslt</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+The system identifier (URI)
+for parsing the XSLT
+stylesheet.
+ </description>
+ <name>xsltSystemId</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Subtag of <choose> that includes its body if its
+ expression evalutes to 'true'
+ </description>
+ <name>when</name>
+
<tag-class>org.apache.taglibs.standard.tag.common.xml.WhenTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+The test condition that tells whether or
+not the body content should be
+processed
+ </description>
+ <name>select</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+</taglib>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/attribute.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/attribute.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/attribute.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0"
encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:attribute test</title>
+ </head>
+ <body>
+ <h1>jsp:attribute test</h1>
+ <jsp:attribute name="user">User</jsp:attribute>
+ <p>User is : ${param.user}</p>
+ </body>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/body.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/body.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/body.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0"
encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:body test</title>
+ </head>
+ <jsp:body>
+ <h1>jsp:body test</h1>
+ </jsp:body>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/declaration.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/declaration.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/declaration.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+<jsp:directive.page import="java.util.Date"/>
+ <jsp:directive.page contentType="application/xhtml+xml;
charset=UTF-8" />
+ <![CDATA[<?xml version="1.0"
encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>Declaration test</title>
+ </head>
+ <body>
+ <h1>Declaration test</h1>
+ <jsp:declaration>
+ Date date = new Date();
+ </jsp:declaration>
+ <jsp:scriptlet>
+ out.println(date);
+ </jsp:scriptlet>
+ </body>
+ </html>
+</jsp:root>
+
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_absolute.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_absolute.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_absolute.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml;
charset=UTF-8" />
+ <![CDATA[<?xml version="1.0"
encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:directive.include test with absolute path</title>
+ </head>
+ <body>
+ <h1>jsp:directive.include test with absolute path</h1>
+ <jsp:directive.include file="/pages/components/include.jsp"/>
+ </body>
+ </html>
+</jsp:root>
+
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_relative.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_relative.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_relative.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml;
charset=UTF-8" />
+ <![CDATA[<?xml version="1.0"
encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:directive.include test with relative path</title>
+ </head>
+ <body>
+ <h1>jsp:directive.include test with relative path</h1>
+ <jsp:directive.include file="./include.jsp"/>
+ </body>
+ </html>
+</jsp:root>
+
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_page.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_page.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_page.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page import="java.util.Date" />
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:directive.page test</title>
+ </head>
+ <body>
+ <h1>jsp:directive.page test</h1>
+ <jsp:expression>
+ new Date()
+ </jsp:expression>
+ </body>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_tag.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_tag.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_tag.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+
xmlns:c="http://java.sun.com/jsp/jstl/core">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:directive.tag test</title>
+ </head>
+ <body>
+ <h1>jsp:directive.tag test</h1>
+ <ul>
+ <c:forEach var="color" begin="0"
items="${colorMap}">
+ <li>${color.key} = <font
color="${color.value}">${color.value}</font><li>
+ </c:forEach>
+ </ul>
+ </body>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_taglib.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_taglib.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_taglib.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.taglib
uri="http://java.sun.com/jstl/core"
prefix="c" />
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:directive.taglib test</title>
+ </head>
+ <body>
+ <h1>jsp:directive.taglib test</h1>
+ <c:set var="bookId" value="${book.bookId}" />
+ </body>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/doBody.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/doBody.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/doBody.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+ xmlns:tags="/WEB-INF/tags">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0"
encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:doBody test</title>
+ </head>
+ <jsp:body>
+ <h1>jsp:doBody test</h1>
+ <tags:double>
+ This text will be printed twice.<br/>
+ </tags:double>
+ </jsp:body>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/element.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/element.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/element.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0"
encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:element test</title>
+ </head>
+ <jsp:element name="body">
+ <jsp:body>
+ <h1>jsp:element test</h1>
+ </jsp:body>
+ </jsp:element>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/expression.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/expression.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/expression.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+<jsp:directive.page import="java.util.Date"/>
+ <jsp:directive.page contentType="application/xhtml+xml;
charset=UTF-8" />
+ <![CDATA[<?xml version="1.0"
encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>Expression test</title>
+ </head>
+ <body>
+ <h1>Expression test</h1>
+ <jsp:expression>
+ new Date()
+ </jsp:expression>
+ </body>
+ </html>
+</jsp:root>
+
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0"
encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:body test</title>
+ </head>
+ <jsp:body>
+ <h1>jsp:forward test</h1>
+ <jsp:forward page="forward1.jsp">
+ <jsp:param name="username" value="User" />
+ </jsp:forward>
+ </jsp:body>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward1.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward1.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward1.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0"
encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:body test</title>
+ </head>
+ <body>
+ <h1>jsp:forward test</h1>
+ <p>User is : ${param.username}</p>
+
+ </body>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/get_property.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/get_property.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/get_property.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:getProperty test</title>
+ </head>
+ <body>
+ <h1>jsp:getProperty test</h1>
+ <jsp:useBean id="calendar" scope="page"
class="org.jboss.jsp.test.Calendar" />
+ <h2>Calendar for <jsp:getProperty name="calendar"
+ property="username" /></h2>
+ </body>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,3 @@
+<jsp:expression>
+ new java.util.Date()
+</jsp:expression>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_absolute.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_absolute.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_absolute.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml;
charset=UTF-8" />
+ <![CDATA[<?xml version="1.0"
encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:include test with absolute path</title>
+ </head>
+ <body>
+ <h1>jsp:include test with absolute path</h1>
+ <jsp:include page="/pages/components/include.jsp"/>
+ </body>
+ </html>
+</jsp:root>
+
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_relative.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_relative.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_relative.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml;
charset=UTF-8" />
+ <![CDATA[<?xml version="1.0"
encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:include test with relative path</title>
+ </head>
+ <body>
+ <h1>jsp:include test with relative path</h1>
+ <jsp:include page="./include.jsp"/>
+ </body>
+ </html>
+</jsp:root>
+
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/output.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/output.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/output.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:output test</title>
+ </head>
+ <body>
+ <h1>jsp:output test</h1>
+ <jsp:output doctype-root-element="html"
+ doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
+
doctype-system="http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional...
/>
+ </body>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/plugin.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/plugin.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/plugin.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:plugin test</title>
+ </head>
+ <body>
+ <h1>jsp:plugin test</h1>
+ <jsp:plugin type="applet" code="JavaClock.class"
+ codebase="/resources/applets" width="160"
+ height="150">
+ <jsp:fallback>
+ Plugin tag not supported.
+ </jsp:fallback>
+ </jsp:plugin>
+ </body>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/root.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/root.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/root.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml;
charset=UTF-8" />
+ <![CDATA[<?xml version="1.0"
encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:root test</title>
+ </head>
+ <body>
+ <h1>jsp:root test</h1>
+ </body>
+ </html>
+</jsp:root>
+
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/scriptlet.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/scriptlet.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/scriptlet.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page import="java.util.Date" />
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>Scriptlet Test</title>
+ </head>
+ <body>
+ <h1>Scriptlet Test</h1>
+ <jsp:scriptlet>
+ out.print(new Date());
+ </jsp:scriptlet>
+ </body>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/set_property.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/set_property.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/set_property.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:setProperty test</title>
+ </head>
+ <body>
+ <h1>jsp:setProperty test</h1>
+ <jsp:useBean id="calendar" scope="page"
class="org.jboss.jsp.test.Calendar" />
+ <jsp:setProperty name="calendar" property="username"
value="User" />
+ <h2>Calendar for <jsp:getProperty name="calendar"
+ property="username" /></h2>
+ </body>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/text.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/text.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/text.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0"
encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>text test</title>
+ </head>
+ <body>
+ <h1>text test</h1>
+ <jsp:text>
+ Any Text
+ </jsp:text>
+ </body>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/useBean.jsp
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/useBean.jsp
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/useBean.jsp 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8"
/>
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html
xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
+ <title>jsp:setProperty test</title>
+ </head>
+ <body>
+ <h1>jsp:setProperty test</h1>
+ <jsp:useBean id="calendar" scope="page"
class="org.jboss.jsp.test.Calendar" />
+ <jsp:setProperty name="calendar" property="username"
value="User" />
+ <h2>Calendar for <jsp:getProperty name="calendar"
+ property="username" /></h2>
+ </body>
+ </html>
+</jsp:root>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/AnalogClock.class
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/AnalogClock.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/CustomParser.class
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/CustomParser.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/JavaClock.class
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/JavaClock.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/ParamParser.class
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/ParamParser.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/jboss/jsp/test/Calendar.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/jboss/jsp/test/Calendar.java
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/jboss/jsp/test/Calendar.java 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,25 @@
+package org.jboss.jsp.test;
+
+import java.util.Date;
+
+public class Calendar {
+ String username;
+ Date date;
+
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ public Date getDate() {
+ return date;
+ }
+
+ public void setDate(Date date) {
+ this.date = date;
+ }
+
+}
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPAllTests.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPAllTests.java
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPAllTests.java 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.jsp.test;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+import org.jboss.tools.vpe.ui.test.beans.ImportBean;
+
+public class JSPAllTests {
+ public static Test suite() {
+
+ TestSuite suite = new TestSuite("Tests for Vpe JSP components");
+ // $JUnit-BEGIN$
+
+ suite.addTestSuite(JSPComponentTest.class);
+
+ // $JUnit-END$
+ List<ImportBean> importProjects = new ArrayList<ImportBean>();
+ ImportBean importBean = new ImportBean();
+ importBean.setImportProjectName(JSPComponentTest.IMPORT_PROJECT_NAME);
+ importBean.setImportProjectPath(JSPTestPlugin.getPluginResourcePath());
+ importProjects.add(importBean);
+ return new VpeTestSetup(suite,importProjects);
+
+ }
+}
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPComponentTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPComponentTest.java
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPComponentTest.java 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,291 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.jsp.test;
+
+import org.eclipse.core.resources.IFile;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+
+/**
+ *
+ * Class for testing all jsp components
+ *
+ * @author dsakovich(a)exadel.com
+ *
+ */
+public class JSPComponentTest extends VpeTest {
+
+ // import project name
+ public static final String IMPORT_PROJECT_NAME = "jspTest";
+
+ public JSPComponentTest(String name) {
+ super(name);
+ setCheckWarning(false);
+ }
+
+ /**
+ * Test for jsp:declaration
+ *
+ * @throws Throwable
+ */
+ public void testDeclaration() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/declaration.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ /**
+ * Test for jsp:expression
+ *
+ * @throws Throwable
+ */
+ public void testExpression() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/expression.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ /**
+ * Test for jsp:scriptlet
+ *
+ * @throws Throwable
+ */
+ public void testScriptlet() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/scriptlet.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ /**
+ * Test for jsp:directive.attribute
+ *
+ * @throws Throwable
+ */
+ public void testDirectiveAttribute() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "../WEB-INF/tags/catalog.tag", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ /**
+ * Test for jsp:directive.include
+ *
+ * @throws Throwable
+ */
+ public void testDirectiveInclude() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/directive_include_absolute.jsp",
+ IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/directive_include_relative.jsp",
+ IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:include
+ *
+ * @throws Throwable
+ */
+ public void testInclude() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/include_absolute.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/include_relative.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:directive.page
+ *
+ * @throws Throwable
+ */
+ public void testDirectivePage() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/directive_page.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:directive.tag
+ *
+ * @throws Throwable
+ */
+ public void testDirectiveTag() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/directive_tag.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:directive.taglib
+ *
+ * @throws Throwable
+ */
+ public void testDirectiveTaglib() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/directive_taglib.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:directive.variable
+ *
+ * @throws Throwable
+ */
+ public void testDirectiveVariable() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "../WEB-INF/tags/catalog.tag", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:attribute
+ *
+ * @throws Throwable
+ */
+ public void testAttribute() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/attribute.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:body
+ *
+ * @throws Throwable
+ */
+ public void testBody() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/body.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:element
+ *
+ * @throws Throwable
+ */
+ public void testElement() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/element.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:doBody
+ *
+ * @throws Throwable
+ */
+ public void testDoBody() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "../WEB-INF/tags/double.tag", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:forward
+ *
+ * @throws Throwable
+ */
+ public void testForward() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/forward.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:getProperty
+ *
+ * @throws Throwable
+ */
+ public void testGetProperty() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/get_property.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:invoke
+ *
+ * @throws Throwable
+ */
+ public void testInvoke() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "../WEB-INF/tags/catalog.tag", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:output
+ *
+ * @throws Throwable
+ */
+ public void testOutput() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/output.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:plugin
+ *
+ * @throws Throwable
+ */
+ public void testPlugin() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/plugin.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:root
+ *
+ * @throws Throwable
+ */
+ public void testRoot() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/root.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:setProperty
+ *
+ * @throws Throwable
+ */
+ public void testSetProperty() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/set_property.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:text
+ *
+ * @throws Throwable
+ */
+ public void testText() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:useBean
+ *
+ * @throws Throwable
+ */
+ public void testUseBean() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/useBean.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+}
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPTestPlugin.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPTestPlugin.java
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPTestPlugin.java 2008-02-11
14:19:34 UTC (rev 6240)
@@ -0,0 +1,79 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.jsp.test;
+
+import java.net.URL;
+
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.Platform;
+import org.jboss.tools.common.log.BaseUIPlugin;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class JSPTestPlugin extends BaseUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.jsf.vpe.jsp.test";
+
+ // The shared instance
+ private static JSPTestPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public JSPTestPlugin() {
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static JSPTestPlugin getDefault() {
+ return plugin;
+ }
+
+ public static String getPluginResourcePath() {
+ Bundle bundle = Platform.getBundle(PLUGIN_ID);
+ URL url = null;
+ try {
+ url = bundle == null ? null : FileLocator.resolve(bundle
+ .getEntry("/resources")); // $NON-NLS-1$
+ } catch (Exception e) {
+ url = bundle.getEntry("/resources"); // $NON-NLS-1$
+ }
+ return (url == null) ? null : url.getPath();
+ }
+
+}