开发者

sql result set to Output JSP page

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜