This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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