aspose file tools*
The moose likes JSP and the fly likes pass jstl sql query result to jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "pass jstl sql query result to jsp" Watch "pass jstl sql query result to jsp" New topic
Author

pass jstl sql query result to jsp

vik ar
Ranch Hand

Joined: Jul 31, 2009
Posts: 104
Hi I have the following code which works perfectly



Now what I want is to perform the query in one page and then display the data in another, as such
index.jsp


test.jsp


I know in index.jsp I can use jsp forward and usebean but am not sure how to? What type is the result from the query? thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61221
    
  66

You should be doing your database access in Java classes where you can pass the results to any view that you want. The JSTL SQL tags are not meant for real code, just for quick prototypes.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
vik ar
Ranch Hand

Joined: Jul 31, 2009
Posts: 104
I know. But is there a solution to this issue?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61221
    
  66

That would be my solution.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pass jstl sql query result to jsp