December 13, 2006

JasperReports Presentations & Tutorials (Big Collections:Updated frequently)

 

Here you will find the big collections of JasperReports Presentations & Tutorials.

1.
Very nice, basic, animated presentation

2.
Reporting Made Easy with JasperReports and Hibernate

3. JasperReports for jBoss (pdf) - Teodor Danciu

4. Creating a Report with JasperReports (for beginners) - Deepak Vohra

5. iReport Tutorials

Read more : 11 responses : Wednesday, December 13, 2006

December 12, 2006

SQLException: Result set type is TYPE_FORWARD_ONLY

 

Sometimes you encounter this stupid exception:
java.sql.SQLException: Result set type is TYPE_FORWARD_ONLY

How to avoid it ?
Answer:
You need to create the statement of type TYPE_SCROLL_SENSITIVE.
Connection conn = ConnectionPool.getConnection();
Statement stmt = conn.createStatement(
ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_UPDATABLE);

stmt.setFetchSize...
ResultSet rs = stmt.execute...

Read more : 0 responses : Tuesday, December 12, 2006