| <html><!-- #BeginTemplate "/Templates/ExamplesTemplate.dwt" --> |
| <head> |
| <!-- #BeginEditable "doctitle" --> |
| <title>JSTL: Examples Web Application</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="format/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>Welcome to the standard-examples web application!</h2> |
| |
| <p>This web application includes a variety of sample JSP pages that showcase the |
| Tomcat Standard tags. |
| |
| <h3>Examples</h3> |
| |
| <p>The JSTL examples have been divided in the following categories:</p> |
| <ul> |
| <li><a href="elsupport/index.html">General Purpose Tags</a></li> |
| <li><a href="conditionals/index.html">Conditional Tags</a></li> |
| <li><a href="iterators/index.html">Iterator Tags</a></li> |
| <li><a href="import/index.jsp">Import Tags</a></li> |
| <li><a href="format/index.html">I18N & Formatting Tags</a></li> |
| <li><a href="xml/index.html">XML Tags</a></li> |
| <li><a href="sql/index.jsp">SQL Tags</a></li> |
| <li><a href="functions/index.html">Functions</a></li> |
| <li><a href="tlv/index.html">Tag Library Validators</a></li> |
| </ul> |
| <p>The navigation bar at the top of each index page provides quick navigation |
| to each set of example pages.</p> |
| |
| <p>When navigating the examples, the following icons will allow you to look at |
| the source code as well as execute the example JSP page.</p> |
| <table border="1" align="center" cellpadding="10"> |
| <tr> |
| <td width="30"><img src="images/code.gif"></td> |
| <td>Look at the source code of the example JSP page</td> |
| </tr> |
| <tr> |
| <td width="30"><img src="images/execute.gif"></td> |
| <td>Execute the example JSP page</td> |
| </tr> |
| </table> |
| <h3>Infrastructure</h3> |
| |
| <p>The source code for the JSTL examples includes class <code>startup.Init</code> |
| to initilialize the objects used in the examples. This allows us to mimic the |
| environment that would normally be used within an MVC architecture: the Controller |
| invokes the business logic, saves the objects required by the web application |
| into JSP scoped attributes (usually request), and then invokes the proper JSP |
| page. For the sake of this "examples" webapp, all objects are saved |
| in the application scope.</p> |
| |
| <p>The application attributes are:</p> |
| <ul> |
| <li><code>customers</code><br> |
| A collection of Customer objects |
| </li> |
| <li><code>intArray</code><br> |
| An array of int's |
| </li> |
| <li><code>stringArray</code><br> |
| An array of Strings |
| </li> |
| <li><code>numberMap</code><br> |
| A Map instance associating Integer objects with their Spanish names |
| </li> |
| <li><code>enumeration</code><br> |
| An enumeration on numberMap from above.<br> |
| </li> |
| </ul> |
| <p>The classes of interest that hold the information manipulated by the JSP pages |
| are:</p> |
| <ul> |
| <li>Customer |
| <ul> |
| <li>int key</li> |
| <li>String lastName</li> |
| <li>String firstName</li> |
| <li>Date birthDate</li> |
| <li>Address address<br> |
| <br> |
| </li> |
| </ul> |
| </li> |
| <li>Address |
| <ul> |
| <li>String line1</li> |
| <li>String line2</li> |
| <li>String city</li> |
| <li>String state</li> |
| <li>String country</li> |
| </ul> |
| </li> |
| </ul> |
| <!-- #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> |