• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java jsp

 
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: 34860
369
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