• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pass jstl sql query result to jsp

 
vik ar
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
vik ar
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know. But is there a solution to this issue?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That would be my solution.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic