I am using jstl to access a database table. After a query has been executed, I need to find its execution time using jstl. I have attached the code I use:
<sql:update dataSource="${conn}" var="addresses">
${query}
</sql:update>
Is there a way to find it? I use ${addresses} to find the number of rows affected.
Thanks in advance
A simple solution would be:
But this really isn’t the best way to accurately time the update. However, if all you need is a general measure of how long it takes, then it’s probably fine.