Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / February 2006

Tip: Looking for answers? Try searching our database.

Handling numerous rows from SQL query

Thread view: 
CalAmity! - 15 Feb 2006 12:45 GMT
Scenario:
=========

[Web Brower]-------(data)------>[Apache Tomcat]----(query)--->[mySQL]
[Web Brower]---(some rows)----->[Apache Tomcat]<---(result)---[mySQL]

*  Web Server hosts servlets and JSP.

*  Web browser connects to Web Server
  fetches query parametrs from the
  user.

*  Once parameters are submitted,
  Data is sent to WebServer.

*  Webserver runs servlets write an
  appropriate query and fetch data
  from mySQL.

*  Result is displayed on user's browser.

Question:
======
The table I query is a Downloads Log.
So for some queries a very large amount
of data may be returned (say about 800-
1000 rows). I need to display this data
systematically 50 records at a time in
the web browser.
If anyone out there a solution to this
problem then please reply back.

Thanks in advance :)
Oliver Wong - 16 Feb 2006 21:05 GMT
> Scenario:
> =========
[quoted text clipped - 29 lines]
>
> Thanks in advance :)

   Presumably you have some JSP somewhere between "Web Browser" and "mySQL"
that takes the rows and translates it to HTML. The web browsers can't
directly work with "rows"; they work with HTML.

   So modify your JSP until you get the desired behaviour.

   - Oliver
Big Jim - 16 Feb 2006 22:36 GMT
> Scenario:
> =========
[quoted text clipped - 29 lines]
>
> Thanks in advance :)

That's really not a huge number of rows, unless they contain some very large
fields. Return all your data in 1 structure (an appropriate list or map) to
minimise trips and use your JSP to display the required number of rows using
an index to select the rows and give your users links to the "pages" of data
on each jsp page.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.