index.jsp
上传用户:liou020
上传日期:2017-07-13
资源大小:4458k
文件大小:4k
源码类别:

Applet

开发平台:

Java

  1. <html><!-- #BeginTemplate "/Templates/ExamplesTemplate.dwt" -->
  2. <head>
  3. <!-- #BeginEditable "doctitle" --> 
  4. <title>Untitled Document</title>
  5. <!-- #EndEditable -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  7. <link rel="stylesheet" href="../global.css" type="text/css">
  8. </head>
  9. <body bgcolor="#FFFFFF" text="#000000">
  10. <table width="100%" border="0" cellpadding="5">
  11.   <tr> 
  12.     <td height="0"><font color="#000099"><b>standard taglib &#149; implementation 
  13.       of the JSP Standard Tag Library &#149; </b></font><font color="#003399"><a href="mailto:taglibs-user@jakarta.apache.org"><b>support</b></a> 
  14.       &nbsp;&nbsp;<b><a href="mailto:taglibs-dev@jakarta.apache.org">development</a>&nbsp;&nbsp; 
  15.       <a href="mailto:jsr-52-comments@jcp.org">comments to JSR-52</a></b></font></td>
  16.   </tr>
  17.   <tr> 
  18.     <td bgcolor="#CCCCFF"><font size="-1">Examples &nbsp;&nbsp;&nbsp;&nbsp;<a href="../index.html">Introduction</a> 
  19.       &#149; <a href="../elsupport/index.html">General Purpose</a> 
  20.       &#149; <a href="../conditionals/index.html">Conditionals</a> 
  21.       &#149; <a href="../iterators/index.html">Iterators</a> &#149; 
  22.       <a href="../import/index.jsp">Import</a> &#149; <a href="../format/index.html">I18N 
  23.       & Formatting</a> &#149; <a href="../xml/index.html">XML</a> 
  24.       &#149; <a href="index.jsp">SQL</a> &#149; <a href="../functions/index.html">Functions</a> 
  25.       &#149; <a href="../tlv/index.html">TLV</a> &#149; <a href="../functions/index.html"></a><a href="../misc/index.html">Misc.</a></font></td>
  26.   </tr>
  27. </table>
  28. <!-- #BeginEditable "body" --> 
  29. <h1>SQL Tags Examples</h1>
  30. <p>These examples create their own table for demonstration purposes. Every database 
  31.   supports table creation in a slightly different way. For instance, different 
  32.   databases have different types and constraints. The simplest possible table 
  33.   was chosen, however it may still not be supported by your particular database. 
  34.   Check your database documentation or administrator if you have problems creating 
  35.   the table and modify the examples acordingly. Here is the table used in the 
  36.   examples:</p>
  37. <pre><code>
  38.     create table mytable (
  39.       nameid int primary key,
  40.       name varchar(80)
  41.     )
  42. </code></pre>
  43. <p>Enter your Driver Name and DataBase URL to test the Database Tag Library.</p>
  44. <p>NOTE: You will need to have the DataBase Driver classes available to your server's 
  45.   classloader or in your server's CLASSPATH at startup.</p>
  46. <form name="myform" action="session.jsp" method="post" >
  47.   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  48.     <tr> 
  49.       <td>Driver:</td>
  50.       <td> 
  51.         <input type="text" size="40" name="dbDriver" value="org.apache.derby.jdbc.ClientDriver">
  52.       </td>
  53.     </tr>
  54.     <tr> 
  55.       <td>URL:</td>
  56.       <td> 
  57.         <input type="text" size="40" name="dbUrl" value="jdbc:derby://localhost:1527/sample;create=true">
  58.       </td>
  59.     </tr>
  60.     <tr> 
  61.       <td colspan="2"> <br>
  62.         <p>The following two fields are <strong>Optional</strong>. They are included 
  63.           for convenience.<br>
  64.           NOTE: an unsecure <code>form</code> is used.</p>
  65.       </td>
  66.     </tr>
  67.     <tr> 
  68.       <td>User Name:</td>
  69.       <td> 
  70.         <input type="text" size="40" name="dbUserName" value="">
  71.       </td>
  72.     </tr>
  73.     <tr> 
  74.       <td>Password:</td>
  75.       <td> 
  76.         <input type="password" size="40" name="dbPassword" value="">
  77.       </td>
  78.     </tr>
  79.   </table>
  80.   <p> 
  81.     <input type="submit" name="Submit" value="Submit">
  82.   </p>
  83. </form>
  84. <hr>
  85. <p>NOTE: You can access the tags directly here to look at the source. If you do 
  86.   not provide a valid Driver and URL using the above form, the tags will NOT run properly.</p>
  87. <%@ include file="links.html" %>
  88. <!-- #EndEditable -->
  89. <hr noshade color="#000099">
  90. <table width="100%" border="0" cellpadding="5">
  91.   <tr> 
  92.     <td height="24"><font color="#000099"><b>standard taglib &#149; implementation 
  93.       of the JSP Standard Tag Library &#149; </b></font><font color="#003399"><a href="mailto:taglibs-user@jakarta.apache.org"><b>support</b></a> 
  94.       &nbsp;&nbsp;<b><a href="mailto:taglibs-dev@jakarta.apache.org">development</a>&nbsp;&nbsp; 
  95.       <a href="mailto:jsr-52-comments@jcp.org">comments to JSR-52</a></b></font></td>
  96.   </tr>
  97. </table>
  98. </body>
  99. <!-- #EndTemplate --></html>