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
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.