I'm trying to use JSTL to create a pagination in my existing JSP code but I am not sure about the following syntax which I've seen in one of the examples.
<sql:setDataSource var="dataSrc"
url="jdbc:oracle:thin:@127.0.0.1:1521:database_name"
driver="oracle.jdbc.driver.OracleDriver"
user="user_name" password="pass_word"/>
Then you run a query:
<sql:query var="queryResults" dataSource="${dataSrc}">
select system_id, employeename from employees
</sql:query>
Then, you display the results on the web page:
<table>
<tr>
<th>ID</th>....
My question is <sql: query var="queryResults"
is this a standard syntax I must use or what do I put inside this query var= ?
and also the dataSource ="{dataSrc}"
is this a standard code or must I modify this?
If someone can direct me to a source example of how to display my tables or rows limited to 10 on each page I'd be very grateful.