sql result set to Output JSP page – Education Career Blog

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

,

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.

Leave a Comment