<body bgcolor="#FFFFFF">

<% 
   String connStr;
   connStr=request.getParameter("connStr");
   if (connStr==null) {
     connStr=(String)session.getValue("connStr");
   }
   if (connStr==null || connStr.equals(null)) { 
     connStr="jdbc:oracle:thin:@localhost:1521:orcl";  // default connection str
%>
<font size=+0>
<B>Please enter a suitable JDBC connection string, before you try the demos below</B>
<pre>
     To use the thin driver insert your host, port and database id.
     Once you have set the connection string it will remain in effect until
     the session times out for most demos.  For Connection Cache demos
     which use application scope on most servlet engines the connection 
     string will remain in effect for the life of the application. 

</pre>
<FORM METHOD=get>
<INPUT TYPE="text" NAME="connStr" SIZE=40 value="<%=connStr%>" >
<INPUT TYPE="submit" VALUE="Set Connection String" >
</FORM>
</font>
<%   }

   session.putValue("connStr",connStr);
%>

