blob: 1d95f4e575b42d9d4c66397bdb00520ad682a2d7 [file] [log] [blame]
<?xml version="1.0"?>
<!--
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.
-->
<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>
&lt;ul&gt;<br/>
&lt;jxpath:forEach varStatus="n" var="i" begin="2" end="10" step="2"&gt;
<br/>&#160;&#160;&#160;&#160;&#160;&#160; &lt;li&gt;&lt;jxpath:out value="$n/count"
/&gt;. that's number &lt;jxpath:out value="i" /&gt;&lt;/li&gt;
<br/>&lt;/jxpath:forEach&gt;<br/>
&lt;/ul&gt;
</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">
&lt;i18n:locale&gt;<br/>
&lt;td&gt;<br/>
&lt;select size="1" name="month"&gt;<br/>
&lt;dt:months var="mon"&gt;<br/>
&lt;option&gt;&lt;jxpath:out value="$mon/month" /&gt;&lt;/option&gt;<br/>
&lt;/dt:months&gt;<br/>
&lt;/select&gt;<br/>
&lt;/td&gt;<br/>
&lt;/i18n:locale&gt;<br/>
</td>
</tr>
</table>
</form>
</p>
</i18n:locale>
</i18n:locale>
<p>
<a href="welcome">Back</a>
</p>
</html>