if you want the transfer of data is also limited , you have to use paging
techniques ... there are choices and one of them is to use iBATIS DataLayer
component . you can fetch records starting from row n and fetch x records
using SqlMap class .

-----Original Message-----
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 11:41 AM
To: Struts Users Mailing List
Subject: RE: Row


One issue with this is that if there is a *lot* of data then rendering and
sending that page to the browser will suffer something of a performance
hit. - 100 rows should be ok though, and if you run an compression filter
(as discussed in other recent threads) the streaming shouldnt be very
intense.

For doing the javascript display/hide Ive found it works best to have the
css style done from a a stylesheet class rather than trying to modify it
directly in the element nodes - so to show and hide you can set the nodes
className property. ie:

in stylesheet:
--------------
.visibleElement{

}
.hiddenElement {
  display: none;
}

in javascript:
--------------
var myElement = window.document.getElementById('bob');
myElement.className = 'visibleElement';

in html:
--------
<div class="hiddenElement">
  blah
</div>

One thing to be aware of is that in Netscrap6 any fields hidden in this way
wont be submitted (in issue if you are using this trick to simulate
tabpanes)! (This bug is fixed in later versions of the mozilla engine though
so Mozilla1, Netscrap7 are sweet (as are ie5+))

As for older browsers such as netscrap4 etc... I think it wont work at all?

-----Original Message-----
From: Matthew Fisher [mailto:[EMAIL PROTECTED]
Sent: Thursday, 15 April 2004 12:22
To: 'Struts Users Mailing List'
Subject: RE: Row


I've had to do something similar, where I took all the results and put them
in <div> tags. Then with a bit of javascript you can hide and display the
div you want.

Matt

-----Original Message-----
From: Sapt [mailto:[EMAIL PROTECTED]
Sent: Thursday, 15 April 2004 2:22 PM
To: Struts Users Mailing List
Subject: Re: Row


and if u don't want to use displaytag, u can put your data in session, and
take only 10 data.
----- Original Message -----
From: "Sapt" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, April 15, 2004 11:11 AM
Subject: Re: Row


> u can try displaytag from displaytag.org..........
> ----- Original Message -----
> From: "Iwan Soenarto (IT)" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 15, 2004 10:00 AM
> Subject: Row
>
>
> I have 100 records. How do I limit the number of row to display per page
> to 10 ?
> What technique should I use ?
>
> Tks
> Iws
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to