Hi,
Firt of all this not good pactice to place all into JSP page.
You should read
MVC Pattern
Insted of this code you should use WebSpher DataSource
This is link to topic how to create DataSource
http://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tdat_tccrtprovds.html
There is good topic at stackoverflow -
Connect to WebSphere DataSource
This is help to start with WebSphere
Recomended reading list
Error talking about that your queries are doing something and WebSphere warning you about it.
I think you neet to have a look to your database desing and also use pagination.