Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

display all record in Jsp

 
priyanaka jaiswal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,


How to retrieve all record from Database and display in one Jsp page?


Thanks in advance
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your question is not clear to me. what do you mean all values from database?
I assume you want to display all rows from a table(or join tables) in a jsp? if data is huge then implement paging.

*also i assumed you know how to display a value from database table.
 
priyanaka jaiswal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i want to display all 100 row of database in one jsp page.i dont want to use pagination.then how to do it?
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just display them, then.

Are you having some particular problem with this task? What have you tried so far?
 
RajeshKumar Nayak
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First Retrieve All record From Database then
create session object
and just set value like
session. setAttribute("stdId",stdid);
after create a Jsp page then
write
${stdid}
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Scoped variables should not be put into the session unless there's a good reason for it. Placing the scoped variables into request scope is usually most appropriate.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic