IntelliJ Java IDE
The moose likes Spring and the fly likes display model object in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "display model object in jsp" Watch "display model object in jsp" New topic
Author

display model object in jsp

Naveen Madarapu
Ranch Hand

Joined: May 24, 2011
Posts: 62

hello,
i have a List type which consist a Member class object this is coming from database am going to render this list in jsp

in list i have 100 member objects but am display 10 per page only without using the multiple jdbc calls how can i did this one can any one help me please.

OCPJP
Sam Mercs
Ranch Hand

Joined: Feb 08, 2009
Posts: 539

This isn't a Spring related question. This might get better traction on the Servlet/JSP forum.
Having said that, the usual way to do it would be to store the data in a session/application object (based on what the data is), that could be used when the user navigates to the next page.

Of course storing 100 odd rows worth data in user session would end up loading the server.

Personally I would not mind 10 trips to the database. how many user a likely to ever navigate more than one page!!


Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
 
IntelliJ Java IDE
 
subject: display model object in jsp
 
Threads others viewed
Issue with c:forEach
javascript validation in JSF
Passing values from JSP to JS
Problem while using session for transferring huge data from controller to session
problem with sorting the result data of search
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture