📄 jstl2.html
字号:
<tr align="left"> <td><a name="wp89482"> </a><div class="pCellBody"><code class="cCode">bookshowcart</code></div></td> <td><a name="wp89484"> </a><div class="pCellBody"><code class="cCode">bookshowcart.jsp</code></div></td> <td><a name="wp89486"> </a><div class="pCellBody"><code class="cCode">/bookshowcart</code></div></td></tr> <tr align="left"> <td><a name="wp89488"> </a><div class="pCellBody"><code class="cCode">bookcashier</code></div></td> <td><a name="wp89490"> </a><div class="pCellBody"><code class="cCode">bookcashier.jsp</code></div></td> <td><a name="wp89492"> </a><div class="pCellBody"><code class="cCode">/bookcashier</code></div></td></tr> <tr align="left"> <td><a name="wp89494"> </a><div class="pCellBody"><code class="cCode">bookreceipt</code></div></td> <td><a name="wp89496"> </a><div class="pCellBody"><code class="cCode">bookreceipt.jsp</code></div></td> <td><a name="wp89498"> </a><div class="pCellBody"><code class="cCode">/bookreceipt</code></div></td></tr></table></div></li></div></ol></div><a name="wp89500"> </a><div class="pSmartList1"><li>Set the alias for each Web component.</li></div><div class="pSmartList2"><ol type="a" class="pSmartList2"><a name="wp89501"> </a><div class="pSmartList2"><li>Select the component.</li></div><a name="wp89502"> </a><div class="pSmartList2"><li>Select the Aliases tab.</li></div><a name="wp89503"> </a><div class="pSmartList2"><li>Click the Add button.</li></div><a name="wp89504"> </a><div class="pSmartList2"><li>Enter the alias.</li></div></ol></div><a name="wp89505"> </a><div class="pSmartList1"><li>Add the JSTL resource bundle basename context parameter.</li></div><div class="pSmartList2"><ol type="a" class="pSmartList2"><a name="wp89506"> </a><div class="pSmartList2"><li>Select the Web module.</li></div><a name="wp89507"> </a><div class="pSmartList2"><li>Select the Context tab. </li></div><a name="wp89508"> </a><div class="pSmartList2"><li>Click Add.</li></div><a name="wp89509"> </a><div class="pSmartList2"><li>Enter <code class="cCode">javax.servlet.jsp.jstl.fmt.localizationContext</code> for the Coded Parameter.</li></div><a name="wp89510"> </a><div class="pSmartList2"><li>Enter <code class="cCode">messages.BookstoreMessages</code> for the Value.</li></div></ol></div><a name="wp89511"> </a><div class="pSmartList1"><li>Set prelude and codas for all JSP pages.</li></div><div class="pSmartList2"><ol type="a" class="pSmartList2"><a name="wp89512"> </a><div class="pSmartList2"><li>Select the JSP Properties tab.</li></div><a name="wp89513"> </a><div class="pSmartList2"><li>Click the Add button next to the Name list.</li></div><a name="wp89514"> </a><div class="pSmartList2"><li>Enter <code class="cCode">bookstore4</code>.</li></div><a name="wp89515"> </a><div class="pSmartList2"><li>Click the Add button next to the URL Pattern list.</li></div><a name="wp89516"> </a><div class="pSmartList2"><li>Enter <code class="cCode">*.jsp</code>.</li></div><a name="wp89517"> </a><div class="pSmartList2"><li>Click the Edit button next to the Include Preludes list.</li></div><a name="wp89518"> </a><div class="pSmartList2"><li>Click Add.</li></div><a name="wp89519"> </a><div class="pSmartList2"><li>Enter <code class="cCode">/template/prelude.jspf</code>.</li></div><a name="wp89520"> </a><div class="pSmartList2"><li>Click OK.</li></div><a name="wp89521"> </a><div class="pSmartList2"><li>Click the Edit button next to the Include Codas list.</li></div><a name="wp89522"> </a><div class="pSmartList2"><li>Click Add.</li></div><a name="wp89523"> </a><div class="pSmartList2"><li>Enter <code class="cCode">/template/coda.jspf</code>.</li></div><a name="wp89524"> </a><div class="pSmartList2"><li>Click OK.</li></div></ol></div><a name="wp89526"> </a><div class="pSmartList1"><li>Add a resource reference for the database.</li></div><div class="pSmartList2"><ol type="a" class="pSmartList2"><a name="wp89527"> </a><div class="pSmartList2"><li>Select the Resource Refs tab.</li></div><a name="wp89528"> </a><div class="pSmartList2"><li>Click Add.</li></div><a name="wp89529"> </a><div class="pSmartList2"><li>Enter <code class="cCode">jdbc/BookDB</code> in the Coded Name field.</li></div><a name="wp89530"> </a><div class="pSmartList2"><li>Accept the default type <code class="cCode">javax.sql.DataSource</code>.</li></div><a name="wp89531"> </a><div class="pSmartList2"><li>Accept the default authorization <code class="cCode">Container</code>.</li></div><a name="wp89532"> </a><div class="pSmartList2"><li>Accept the default selected <code class="cCode">Shareable</code>.</li></div><a name="wp89533"> </a><div class="pSmartList2"><li>Enter <code class="cCode">jdbc/BookDB</code> in the JNDI name field the Deployment setting for jdbc/BookDB frame.</li></div></ol></div><a name="wp89534"> </a><div class="pSmartList1"><li>Select File<span style="font-family: Symbol"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span>Save.</li></div><a name="wp89535"> </a><div class="pSmartList1"><li>Deploy the application. </li></div><div class="pSmartList2"><ol type="a" class="pSmartList2"><a name="wp89536"> </a><div class="pSmartList2"><li>Select Tools<span style="font-family: Symbol"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span>Deploy. </li></div><a name="wp89537"> </a><div class="pSmartList2"><li>Click OK.</li></div></ol></div><a name="wp75367"> </a><div class="pSmartList1"><li>Open the bookstore URL <code class="cCode">http://localhost:8080/bookstore4/bookstore</code>.</li></div></ol></div><a name="wp66163"> </a><p class="pBody">See <a href="Servlets3.html#wp71209">Troubleshooting</a> for help with diagnosing common problems.</p> </blockquote> <img src="images/blueline.gif" width="550" height="8" ALIGN="BOTTOM" NATURALSIZEFLAG="3" ALT="Divider"> <table width="550" summary="layout" id="SummaryNotReq1"> <tr> <td align="left" valign="center"> <font size="-1"> <a href="http://java.sun.com/j2ee/1.4/download.html#tutorial" target="_blank">Download</a> <br> <a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/faq.html" target="_blank">FAQ</a> <br> <a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/history.html" target="_blank">History</a> </td> <td align="center" valign="center"><a accesskey="p" href="JSTL.html"><img id="LongDescNotReq1" src="images/PrevArrow.gif" width="26" height="26" border="0" alt="Prev" /></a><a accesskey="c" href="J2EETutorialFront.html"><img id="LongDescNotReq1" src="images/UpArrow.gif" width="26" height="26" border="0" alt="Home" /></a><a accesskey="n" href="JSTL3.html"><img id="LongDescNotReq3" src="images/NextArrow.gif" width="26" height="26" border="0" alt="Next" /></a><a accesskey="i" href="J2EETutorialIX.html"></a> </td> <td align="right" valign="center"> <font size="-1"> <a href="http://java.sun.com/j2ee/1.4/docs/api/index.html" target="_blank">API</a> <br> <a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/search.html" target="_blank">Search</a> <br> <a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/sendusmail.html" target="_blank">Feedback</a></font> </font> </td> </tr> </table> <img src="images/blueline.gif" width="550" height="8" ALIGN="BOTTOM" NATURALSIZEFLAG="3" ALT="Divider"><p><font size="-1">All of the material in <em>The J2EE(TM) 1.4 Tutorial</em> is <a href="J2EETutorialFront2.html">copyright</a>-protected and may not be published in other workswithout express written permission from Sun Microsystems.</font> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -