home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <!--
- Copyright 1999-2004 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
- <html xmlns:core="urn:apache:taglib:core" xmlns:dt="urn:apache:taglib:datetime"
- xmlns:i18n="urn:apache:taglib:i18n" xmlns:jxpath="urn:apache:taglib:jxpath:core"
- xmlns:string="urn:apache:taglib:string" xmlns:test="urn:apache:taglib:test">
-
- <title>Tag Test</title>
- <h2>tag test</h2>
- <i18n:locale localeRef="$session/locale" >
-
- <h3>forEach</h3>
- <p>
-
- <table border="1" cellspaceing="0" cellpadding="5">
- <tr>
- <td>
- <ul>
- <jxpath:forEach varStatus="n" var="i" begin="2" end="10" step="2">
- <li><jxpath:out value="$n/count" />. that's number <jxpath:out value="i" /></li>
- </jxpath:forEach>
- </ul>
- </td>
- <td>
- <ul><br/>
- <jxpath:forEach varStatus="n" var="i" begin="2" end="10" step="2">
- <br/> <li><jxpath:out value="$n/count"
- />. that's number <jxpath:out value="i" /></li>
- <br/></jxpath:forEach><br/>
- </ul>
- </td>
- </tr>
- </table>
- </p>
-
- <ul>
- <jxpath:forEach varStatus="n" var="i" items="$request/BrowserLocales" >
- <li><jxpath:out value="$n/count" />. <jxpath:out value="$i/language" /></li>
- </jxpath:forEach>
- </ul>
-
-
- <ul>
- <jxpath:forEach varStatus="n" var="j" items="$session/RequestInfo" >
- <li><jxpath:out value="$n/count" />. <jxpath:out value="j" /></li>
- </jxpath:forEach>
- </ul>
-
- <jxpath:out value="$session/RequestInfo[5]/language" />
-
- <h3>locale</h3>
- <i18n:locale language="en">
- <p>
- <form>
- <table border="1" >
- <tr>
- <i18n:locale>
- <td>session language</td>
- <td>
- <select size="1" name="month">
- <dt:months var="mon">
- <option><jxpath:out value="$mon/month" /></option>
- </dt:months>
- </select>
- </td>
- </i18n:locale>
- </tr>
- <tr>
- <i18n:locale language="de" country="DE">
- <td>german</td>
- <td>
- <select size="1" name="month">
- <dt:months var="mon">
- <option><jxpath:out value="$mon/month" /></option>
- </dt:months>
- </select>
- </td>
- </i18n:locale>
- </tr>
- <tr>
- <td colspan="2">
- <i18n:locale><br/>
- <td><br/>
- <select size="1" name="month"><br/>
- <dt:months var="mon"><br/>
- <option><jxpath:out value="$mon/month" /></option><br/>
- </dt:months><br/>
- </select><br/>
- </td><br/>
- </i18n:locale><br/>
- </td>
- </tr>
- </table>
- </form>
- </p>
- </i18n:locale>
-
- </i18n:locale>
-
- <p>
- <a href="TaglibTest.xhtml">Back</a>
- </p>
-
- </html>
-