Thanks alsej,
I'm trying for the same. I've already configured log4j to write the SQL queries in a separate log file, say hibernate.log.
I also have a taglib for log4j (
http://jakarta.apache.org/taglibs/doc/log-doc/log-1.0/), which can dump any attribut available in request object on the page.
I'm using this taglib from JSP.
I'm expecting that I shall write a log4j appender, which can write these SQL queries onto the request object, then the available taglib will dump the values from request object to the web page.
Any further ideas are most welcome!!!
Thanks & Regards,
Hibernaut