<body bgcolor="#FFFFFF">

<% 
   String dataSrcStr;
   dataSrcStr=request.getParameter("dataSrcStr");
   if (dataSrcStr==null) {
     dataSrcStr=(String)session.getValue("dataSrcStr");
   }
   if (dataSrcStr==null || dataSrcStr.equals(null)) {
     dataSrcStr="jdbc/OracleCoreDS";  // default data source string
%>
<font size=+0>
<B>The SQL TAG demos use a data source, not a connection string. Please enter a suitable data source string, before you try the demos below</B>
<pre>
     This demo uses the default datasource defined in $J2EE_HOME/config/data-sources.xml.
     You may change the default datasource to one you have defined or use the default.
     Please make sure that the data-sources.xml points to a valid, running database.
     Once you have set the data source string it will remain in effect until
     the session times out for most demos.  For Connection Cache demos
     which use application data source name will remain in effect for the life of the application. 

</pre>
<FORM METHOD=get>
<INPUT TYPE="text" NAME="dataSrcStr" SIZE=40 value="<%=dataSrcStr%>" >
<INPUT TYPE="submit" VALUE="Set Data Source String" >
</FORM>
</font>

<%   }

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