📄 ebank7.html
字号:
<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <title>Running the Clients</title> <link rel="StyleSheet" href="document.css" type="text/css" media="all" /> <link rel="StyleSheet" href="catalog.css" type="text/css" media="all" /> <link rel="Table of Contents" href="J2EETutorialTOC.html" /> <link rel="Previous" href="Ebank6.html" /> <link rel="Next" href="Encodings.html" /> <link rel="Index" href="J2EETutorialIX.html" /> </head> <body> <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="Ebank6.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="Encodings.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"> <blockquote><a name="wp80388"> </a><h2 class="pHeading1">Running the Clients</h2><a name="wp82433"> </a><h3 class="pHeading2">Running the J2EE Application Client</h3><a name="wp81020"> </a><p class="pBody">To run the J2EE application client:</p><div class="pSmartList1"><ol type="1" class="pSmartList1"><a name="wp81021"> </a><div class="pSmartList1"><li>In a terminal window, go to <code class="cCode"><</code><code class="cVariable">INSTALL</code><code class="cCode">>/j2eetutorial14/examples/bank/</code>.</li></div><a name="wp80393"> </a><div class="pSmartList1"><li>To run the English version of the client, execute the following command:</li></div><a name="wp80394"> </a><p class="pBodyRelative"><code class="cCode"> appclient -client DukesBankAppClient.jar</code></p><a name="wp84128"> </a><p class="pBodyRelative">The <code class="cCode">DukesBankAppClient.jar</code> parameter is the name of the J2EE application client JAR file returned when you deployed <code class="cCode">DukesBankApp</code>. </p><a name="wp80395"> </a><div class="pSmartList1"><li>To run the Spanish version, include the <code class="cCode">es</code> language code:</li></div><a name="wp80396"> </a><p class="pBodyRelative"><code class="cCode"> appclient -client DukesBankAppClient.jar es</code></p><a name="wp80398"> </a><div class="pSmartList1"><li>At the login prompts, type in <code class="cCode">bankadmin</code> for the user name and <code class="cCode">j2ee</code> for the password. The next thing you should see is the application shown in <a href="Ebank7.html#wp80407">Figure 32-19</a>.</li></div></ol></div><a name="wp80405"> </a><p class="pBody"></p><div align="left"><img src="images/Fig4811.gif" height="223" width="472" alt="BankAdmin Application Client" border="0" hspace="0" vspace="0"/></div><p class="pBody"></p><p> <a name="80407"> </a><strong><font >Figure 32-19 <code class="cCode">BankAdmin</code> Application Client</font></strong></p><a name="wp80408"> </a><h3 class="pHeading2">Running the Web Client</h3><a name="wp81081"> </a><p class="pBody">To run the Web client:</p><div class="pSmartList1"><ol type="1" class="pSmartList1"><a name="wp81082"> </a><div class="pSmartList1"><li>Open the bank URL, <code class="cCode">http://localhost:8080/bank/main</code>, in a Web browser. To see the Spanish version of the application, set your browser language preference to any Spanish dialect.</li></div><a name="wp80412"> </a><div class="pSmartList1"><li>The application will display the login page. Enter <code class="cCode">200</code> for the customer ID and <code class="cCode">j2ee</code> for the password. Click Submit.</li></div><a name="wp80413"> </a><div class="pSmartList1"><li>Select an application function: Account List, Transfer Funds, ATM, or Logoff. Once you have a list of accounts, you can get an account history by selecting an account link.</li></div></ol></div><hr><a name="wp80414"> </a><p class="pNote">Note: The first time you select a new page, particularly a complicated page like an account history, it takes some time to display because the J2EE Application Server must translate the page into a servlet class and compile and load the class.</p><hr><a name="wp80418"> </a><p class="pBody">If you select Account List, you will see the screen shown in <a href="Ebank7.html#wp80424">Figure 32-20</a>.</p><a name="wp80422"> </a><p class="pBody"></p><div align="left"><img src="images/Fig4912.gif" height="543" width="665" alt="Web Client Account List" border="0" hspace="0" vspace="0"/></div><p class="pBody"></p><p> <a name="80424"> </a><strong><font >Figure 32-20 Account List</font></strong></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="Ebank6.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="Encodings.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 + -