blob: 7fd620fbeb471e90f2cb1145569a5e790b446a55 [file] [log] [blame]
<#--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!-- Test loading from web.xml-mapped JAR -->
<@JspTaglibs["http://freemarker.sf.net/taglibs/freemarker-junit-test-tag-2.2"].simpletag bodyLoopCount=1 name="simpletag1">
foo
</@>
<@JspTaglibs["http://freemarker.sf.net/taglibs/freemarker-junit-test-tag-2.2-2"].testtag></@>
<!-- Test loading from autodeployed WEB-INF/lib/*.jar -->
<@JspTaglibs["http://freemarker.sf.net/taglibs/freemarker-junit-test-tag-2.2-foo"].testtag></@>
<!-- Test loading from root-relative URL -->
<@JspTaglibs["/WEB-INF/taglib 2.jar"].testtag></@>
<!-- Test loading from non-root-relative URL -->
<@JspTaglibs["WEB-INF/taglib 2.jar"].testtag></@>
<!-- Test loading from autodeployed .tld -->
<@JspTaglibs["http://freemarker.sf.net/taglibs/freemarker-junit-test-tag-autodeploy-tld-2"].simpletag/>
<@JspTaglibs["http://freemarker.sf.net/taglibs/freemarker-junit-test-tag-autodeploy-tld-3"].simpletag/>
<!-- Test loading from FreemarkerServlet "ClasspathTlds" -->
<@JspTaglibs["http://freemarker.org/taglibs/test/ClassPathTlds-1"].simpletag/>
<@JspTaglibs["http://freemarker.org/taglibs/test/ClassPathTlds-2"].simpletag/>
<!-- Test loading from "MetaInfTldSources", inherited from Jetty -->
${JspTaglibs["http://java.sun.com/jsp/jstl/functions"].join(['a', 'b'], '+')}
<!-- Test loading from "MetaInfTldSources", set via init-param -->
<@JspTaglibs["http://freemarker.org/taglibs/test/MetaInfTldSources-1"].simpletag/>
<#assign display = JspTaglibs["http://displaytag.sf.net"]>
<@display.table name="lsob">
<@display.column property="name" />
<@display.column property="age" />
<@display.column property="maried" />
</@display.table>
<!-- Test loading from mapped relative URL -->
<@JspTaglibs["/subdir/taglib"].simpletag />