tags:

views:

15

answers:

1

I have a sql query fired in my model class which returns a table of user data. Now i need to display the result on my view page (JSP). I don't want to fire the sql from JSP page. How do i pass of the result set to JSP? do i need to construct a collection set and pass it on to the JSP or is there any better way to do it?

Thanks,

-Vijay

A: 

use the request scope to pass from one jsp to another if you are using import in the WORST case use the session scope but you will be prone to memory leak.

dvhh
How is utilizing session scope prone to memory leaks? The session will be garbaged anyway when it expires. It's only more memory hogging, but it definitely isn't memory leaking.
BalusC