Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help me plz

 
sorimachi wong
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
plz help..
i display 10 items record in 1 page.. using e.g"select top 10 * from product)

now is, how to get the no.10 item record id? store in seesion or value.
anyone know? i need easy coding JSP...coz i 'm new..
 
Vasudevan Badri
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Mr.Wong

Since you are Using the JSP's put the query result in to a resultset object. Using the resultset properties you can extract the 10th result and set it to the session using session.setparam.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic