| <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></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> |
| </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></td> |
| </tr> |
| </table> |
| </body> |
| <!-- #EndTemplate --></html> |