This week's book giveaway is in the Design forum.
We're giving away four copies of Mastering Non-Functional Requirements and have Sameer Paradkar on-line!
See this thread for details.
Win a copy of Mastering Non-Functional Requirements this week in the Design forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java jsp  RSS feed

 
nikhil govind
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have written a query in java and stored in a resultset object
now to send it to jsp what should i do
what code is needed in jsp ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 36818
481
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Java, you should read the data from the result set and put it the request with request.setAttribute. Usually it goes in an arraylist of some custom object. Then in the JSP, you use JSTL to loop through the list and display the relevant data.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!