• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

refreshing part of JSP page without reload - kind of AJAX

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a main JSP for display of about 1000 records which is displayed fine
using a display table. I have another JSP included in this JSP which just gives the user a warning message (no of records also)using html:error tag.
<tr valign="top">
<td width="100%" colspan="5">
<div align="center">
<html:error/>
</div>
</td>
</tr>

For the 1000 records, I call the database once and for number of total records(generally>1000), I make another database call. As both the calls involve around 9 table joins, the page loading is taking a lot of time. I want to make 2 different actions for both the calls and refresh the message part after the page is loaded with the first query. I do not know if I can use AJAX for this. Can anybody help. Thanks in advance.
Sai Kinnera
 
Sheriff
Posts: 67537
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to HTML/Javascript.
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can think of using an IFRAME to load the second "ERROR tag" ? to display the total count of records. That way its two different requests sent to the server & the loading of these two would be independent of each other.

You always have the option of using AJAX to just return you the count of records. AJAX wud be nice to use, but you need to be aware of situations wherein the browser might not support AJAX.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic