jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hor...@apache.org
Subject cvs commit: jakarta-taglibs/standard/examples/web/sql session.jsp index.jsp Update.jsp Transaction.jsp QueryParam.jsp QueryIterate.jsp QueryDirect.jsp
Date Mon, 15 Jul 2002 22:16:00 GMT
horwat      2002/07/15 15:16:00

  Modified:    standard/examples/web/sql session.jsp index.jsp Update.jsp
                        Transaction.jsp QueryParam.jsp QueryIterate.jsp
                        QueryDirect.jsp
  Log:
  Added user name and password fields to example form.
  
  Bugzilla #9581
  
  Revision  Changes    Path
  1.3       +4 -6      jakarta-taglibs/standard/examples/web/sql/session.jsp
  
  Index: session.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/examples/web/sql/session.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- session.jsp	17 Apr 2002 02:53:37 -0000	1.2
  +++ session.jsp	15 Jul 2002 22:16:00 -0000	1.3
  @@ -6,12 +6,10 @@
   </head>
   <body bgcolor="white">
   
  -<%
  -  String _url = request.getParameter("dbUrl");
  -  session.setAttribute("myDbUrl", _url);
  -  String _driver = request.getParameter("dbDriver");
  -  session.setAttribute("myDbDriver", _driver);
  -%>
  +<c:set var="myDbUrl" value="${param.dbUrl}" scope="session"/>
  +<c:set var="myDbDriver" value="${param.dbDriver}" scope="session"/>
  +<c:set var="myDbUserName" value="${param.dbUserName}" scope="session"/>
  +<c:set var="myDbPassword" value="${param.dbPassword}" scope="session"/>
   
   <%@ include file="links.html" %>
   
  
  
  
  1.9       +24 -7     jakarta-taglibs/standard/examples/web/sql/index.jsp
  
  Index: index.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/examples/web/sql/index.jsp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- index.jsp	30 Apr 2002 21:14:31 -0000	1.8
  +++ index.jsp	15 Jul 2002 22:16:00 -0000	1.9
  @@ -38,21 +38,38 @@
         name varchar(80)
       )
   </code></pre>
  -<p>Enter your Driver Name and DataBase URL to test the Database Tag Library. NOTE:

  -  You will need to have the DataBase Driver classes available in your server's 
  -  CLASSPATH at startup.</p>
  -<form name="myform" action="session.jsp" method="get" >
  -  <table width="90%" border="0" cellspacing="0" cellpadding="0">
  +<p>Enter your Driver Name and DataBase URL to test the Database Tag Library.</p>
  +<p>NOTE: You will need to have the DataBase Driver classes available to your server's
classloader or in your server's CLASSPATH at startup.</p>
  +<form name="myform" action="session.jsp" method="post" >
  +  <table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr> 
  -      <td>Driver</td>
  +      <td>Driver:</td>
         <td> 
           <input type="text" size="40" name="dbDriver" value="RmiJdbc.RJDriver">
         </td>
       </tr>
       <tr> 
  -      <td>URL</td>
  +      <td>URL:</td>
         <td> 
           <input type="text" size="40" name="dbUrl" value="jdbc:rmi://localhost:1099/jdbc:cloudscape:CloudscapeDB;create=true">
  +      </td>
  +    </tr>
  +    <tr>
  +      <td colspan="2">
  +<br><p>The following two fields are <strong>Optional</strong>.
They are included for convenience.<br>
  +NOTE: an unsecure <code>form</code> is used.</p>
  +      </td>
  +    </tr>
  +    <tr> 
  +      <td>User Name:</td>
  +      <td> 
  +        <input type="text" size="40" name="dbUserName" value="">
  +      </td>
  +    </tr>
  +    <tr> 
  +      <td>Password:</td>
  +      <td> 
  +        <input type="password" size="40" name="dbPassword" value="">
         </td>
       </tr>
     </table>
  
  
  
  1.14      +4 -2      jakarta-taglibs/standard/examples/web/sql/Update.jsp
  
  Index: Update.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/examples/web/sql/Update.jsp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Update.jsp	17 Apr 2002 02:53:37 -0000	1.13
  +++ Update.jsp	15 Jul 2002 22:16:00 -0000	1.14
  @@ -14,8 +14,10 @@
   
   <sql:setDataSource
     var="example"
  -  driver="${myDbDriver}"
  -  url="${myDbUrl}"
  +  driver="${sessionScope.myDbDriver}"
  +  url="${sessionScope.myDbUrl}"
  +  user="${sessionScope.myDbUserName}"
  +  password="${sessionScope.myDbPassword}"
   />
   
   <hr>
  
  
  
  1.10      +4 -2      jakarta-taglibs/standard/examples/web/sql/Transaction.jsp
  
  Index: Transaction.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/examples/web/sql/Transaction.jsp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Transaction.jsp	17 Apr 2002 02:53:37 -0000	1.9
  +++ Transaction.jsp	15 Jul 2002 22:16:00 -0000	1.10
  @@ -13,8 +13,10 @@
   
   <sql:setDataSource
     var="example"
  -  driver="${myDbDriver}"
  -  url="${myDbUrl}"
  +  driver="${sessionScope.myDbDriver}"
  +  url="${sessionScope.myDbUrl}"
  +  user="${sessionScope.myDbUserName}"
  +  password="${sessionScope.myDbPassword}"
   />
   
   <p>You can group transactions together using the &lt;sql:transaction&gt;
tag.</p>
  
  
  
  1.12      +4 -2      jakarta-taglibs/standard/examples/web/sql/QueryParam.jsp
  
  Index: QueryParam.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/examples/web/sql/QueryParam.jsp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- QueryParam.jsp	17 Apr 2002 02:53:37 -0000	1.11
  +++ QueryParam.jsp	15 Jul 2002 22:16:00 -0000	1.12
  @@ -18,8 +18,10 @@
   
   <sql:setDataSource
     var="example"
  -  driver="${myDbDriver}"
  -  url="${myDbUrl}"
  +  driver="${sessionScope.myDbDriver}"
  +  url="${sessionScope.myDbUrl}"
  +  user="${sessionScope.myDbUserName}"
  +  password="${sessionScope.myDbPassword}"
   />
   
   <sql:transaction dataSource="${example}">
  
  
  
  1.14      +4 -2      jakarta-taglibs/standard/examples/web/sql/QueryIterate.jsp
  
  Index: QueryIterate.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/examples/web/sql/QueryIterate.jsp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- QueryIterate.jsp	17 Apr 2002 02:53:37 -0000	1.13
  +++ QueryIterate.jsp	15 Jul 2002 22:16:00 -0000	1.14
  @@ -14,8 +14,10 @@
   
   <sql:setDataSource
     var="example"
  -  driver="${myDbDriver}"
  -  url="${myDbUrl}"
  +  driver="${sessionScope.myDbDriver}"
  +  url="${sessionScope.myDbUrl}"
  +  user="${sessionScope.myDbUserName}"
  +  password="${sessionScope.myDbPassword}"
   />
   
   <sql:transaction dataSource="${example}">
  
  
  
  1.13      +4 -2      jakarta-taglibs/standard/examples/web/sql/QueryDirect.jsp
  
  Index: QueryDirect.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/examples/web/sql/QueryDirect.jsp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- QueryDirect.jsp	17 Apr 2002 02:53:37 -0000	1.12
  +++ QueryDirect.jsp	15 Jul 2002 22:16:00 -0000	1.13
  @@ -15,8 +15,10 @@
   
   <sql:setDataSource
     var="example"
  -  driver="${myDbDriver}"
  -  url="${myDbUrl}"
  +  driver="${sessionScope.myDbDriver}"
  +  url="${sessionScope.myDbUrl}"
  +  user="${sessionScope.myDbUserName}"
  +  password="${sessionScope.myDbPassword}"
   />
   
   <sql:transaction dataSource="${example}">
  
  
  

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message