<%! String dataSrcStr; %>
<%@ include file="checkDataSource.jsp" %>

<%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/sqltaglib.tld" prefix="sql" %>
   <HTML> 
       <HEAD> 
           <TITLE>A simple tag with open, query and close </TITLE> 
       </HEAD>
       <BODY BGCOLOR="#FFFFFF"> 
            <HR>
            <sql:dbOpen dataSource="<%= dataSrcStr %>"  connId="con1">
            </sql:dbOpen>
            <sql:dbQuery connId="con1">
               select * from EMP order by ename
            </sql:dbQuery>
            <sql:dbClose connId="con1" />
            <HR> 
       </BODY> 
  </HTML> 

