1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
<html><!-- #BeginTemplate "/Templates/ExamplesTemplate.dwt" -->
<head>
<!-- #BeginEditable "doctitle" -->
<title>JSTL: I18N-Capable Formatting Tags Examples</title>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../global.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" cellpadding="5">
<tr>
<td height="0"><font color="#000099"><b>standard taglib • implementation
of the JSP Standard Tag Library • </b></font><font color="#003399"><a href="mailto:taglibs-user@jakarta.apache.org"><b>support</b></a>
<b><a href="mailto:taglibs-dev@jakarta.apache.org">development</a>
<a href="mailto:jsr-52-comments@jcp.org">comments to JSR-52</a></b></font></td>
</tr>
<tr>
<td bgcolor="#CCCCFF"><font size="-1">Examples <a href="../index.html">Introduction</a>
• <a href="../elsupport/index.html">General Purpose</a>
• <a href="../conditionals/index.html">Conditionals</a>
• <a href="../iterators/index.html">Iterators</a> •
<a href="../import/index.jsp">Import</a> • <a href="index.html">I18N
& Formatting</a> • <a href="../xml/index.html">XML</a>
• <a href="../sql/index.jsp">SQL</a> • <a href="../functions/index.html">Functions</a>
• <a href="../tlv/index.html">TLV</a> • <a href="../functions/index.html"></a><a href="../misc/index.html">Misc.</a></font></td>
</tr>
</table>
<!-- #BeginEditable "body" -->
<h2>I18N-Capable Formatting Tags Examples</h2>
<h3>Demo <a href="../ShowSource.jsp?filename=/format/Demo.jsp"><img src="../images/code.gif" width="24" height="24" border="0"></a>
<a href="Demo.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a> </h3>
Overview demo where the locale to be applied to the page may be changed dynamically.<br>
<h3>German <a href="../ShowSource.jsp?filename=/format/GermanLocale.jsp"><img src="../images/code.gif" width="24" height="24" border="0"></a>
<a href="GermanLocale.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a>
</h3>
Using resource bundle for German locale. <br>
<h3>Italian <a href="../ShowSource.jsp?filename=/format/ItalianLocale.jsp"><img src="../images/code.gif" width="24" height="24" border="0"></a>
<a href="ItalianLocale.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a>
</h3>
Using resource bundle for Italian locale. <br>
<h3>Missing Resource Bundle <a href="../ShowSource.jsp?filename=/format/MissingResourceBundle.jsp"><img src="../images/code.gif" width="24" height="24" border="0"></a>
<a href="MissingResourceBundle.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a>
</h3>
Trying to access a resource bundle that does not exist. <br>
<h3>Undefined Key <a href="../ShowSource.jsp?filename=/format/UndefinedKey.jsp"><img src="../images/code.gif" width="24" height="24" border="0"></a>
<a href="UndefinedKey.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a>
</h3>
Looking up an undefined key in a resource bundle. <br>
<h3>Parametric Replacement <a href="../ShowSource.jsp?filename=/format/ParametricReplacement.jsp"><img src="../images/code.gif" width="24" height="24" border="0"></a>
<a href="ParametricReplacement.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a>
</h3>
Parametric replacement examples. <br>
<h3>Prefix <a href="../ShowSource.jsp?filename=/format/PrefixAttribute.jsp"><img src="../images/code.gif" width="24" height="24" border="0"></a>
<a href="PrefixAttribute.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a>
</h3>
Prepending prefix to message key. <br>
<h3>Date <a href="../ShowSource.jsp?filename=/format/FormatDateTime.jsp"><img src="../images/code.gif" width="24" height="24" border="0"></a>
<a href="FormatDateTime.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a>
</h3>
Formatting dates and times using <tt>en-US</tt> locale. <br>
<h3>Date <a href="../ShowSource.jsp?filename=/format/FormatDateTimeBrowserLocale.jsp"><img src="../images/code.gif" width="24" height="24" border="0"></a>
<a href="FormatDateTimeBrowserLocale.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a>
</h3>
Formatting dates and times using browser-based locale. <br>
<h3>Number <a href="../ShowSource.jsp?filename=/format/FormatNumber.jsp"><img src="../images/code.gif" width="24" height="24" border="0"></a>
<a href="FormatNumber.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a>
</h3>
Formatting numbers using <tt>en-US</tt> locale. <br>
<h3>Number <a href="../ShowSource.jsp?filename=/format/FormatNumberBrowserLocale.jsp"><img src="../images/code.gif" width="24" height="24" border="0"></a>
<a href="FormatNumberBrowserLocale.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a>
</h3>
Formatting numbers using browser-based locale. <br>
<h3>Request Parameter Decoding <a href="../ShowSource.jsp?filename=/format/RequestEncoding.jsp"><img src="../images/code.gif" width="24" height="24" border="0"></a>
<a href="RequestEncoding.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a>
</h3>
Decoding and displaying request parameters using the appropriate charset. <br>
<!-- #EndEditable -->
<hr noshade color="#000099">
<table width="100%" border="0" cellpadding="5">
<tr>
<td height="24"><font color="#000099"><b>standard taglib • implementation
of the JSP Standard Tag Library • </b></font><font color="#003399"><a href="mailto:taglibs-user@jakarta.apache.org"><b>support</b></a>
<b><a href="mailto:taglibs-dev@jakarta.apache.org">development</a>
<a href="mailto:jsr-52-comments@jcp.org">comments to JSR-52</a></b></font></td>
</tr>
</table>
</body>
<!-- #EndTemplate --></html>
|