You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Iwan Soenarto (IT)" <iw...@jababeka.co.id> on 2004/04/15 05:00:39 UTC

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

Re: Reporting Tool.

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
There was a discussion on this a while back:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg95747.html

Niall

----- Original Message ----- 
From: "Marcelo Epstein" <ma...@epstein.com.br>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Thursday, April 15, 2004 4:07 AM
Subject: Reporting Tool.


> Hi,
> I need to create some reports in my application. Which is the best tool
> available to work with Struts?
> I read about JasperReports, is it the way to go with Struts?
> 
> Thanks in advance.
> Marcelo
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Reporting Tool.

Posted by Marcelo Epstein <ma...@epstein.com.br>.
Hi,
I need to create some reports in my application. Which is the best tool
available to work with Struts?
I read about JasperReports, is it the way to go with Struts?

Thanks in advance.
Marcelo


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Row

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
You can use the "length" and "offset" attributes in <logic:iterate> to
control this. Length limits the number to display and offset tells iterate
at which occurance to start at.


Display first ten:  <logic:iterate length="10" offset="0">
Display second ten:  <logic:iterate length="10" offset="10">

Niall



----- Original Message ----- 
From: "Iwan Soenarto (IT)" <iw...@jababeka.co.id>
To: <us...@struts.apache.org>
Sent: Thursday, April 15, 2004 4: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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Row

Posted by Robert Taylor <rt...@mulework.com>.
request.getSession().setAttribute("myObjectName", object);

hth,

robert

> -----Original Message-----
> From: Julia Weaver [mailto:dreamweaver_y03@yahoo.com]
> Sent: Friday, April 16, 2004 9:18 AM
> To: Struts Users Mailing List
> Subject: Re: Row
> 
> 
> Hi,
> Could you please tell me how to put data in session?
> Could you please give me an example?
> Thanks,
> 
> 
> --- Sapt <ha...@indonesian-aerospace.com> wrote:
> > 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" <ha...@indonesian-aerospace.com>
> > To: "Struts Users Mailing List"
> > <us...@struts.apache.org>
> > Sent: Thursday, April 15, 2004 11:11 AM
> > Subject: Re: Row
> > 
> > 
> > > u can try displaytag from displaytag.org..........
> > > ----- Original Message -----
> > > From: "Iwan Soenarto (IT)"
> > <iw...@jababeka.co.id>
> > > To: <us...@struts.apache.org>
> > > 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:
> > user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail:
> > user-help@struts.apache.org
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> > user-help@struts.apache.org
> > 
> 
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online by April 15th
> http://taxes.yahoo.com/filing.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Row

Posted by Julia Weaver <dr...@yahoo.com>.
Hi,

Thanks for all the answers. Since I have a large
amount of data -- over 10000 for display, can I just
call getSession fetch first 100 rows, then when user
click "more" link then fetch the next 100 rows. But
how to fetch the next 100 rows from session object?

Thanks,





--- Matthew Ryan <ma...@matthewryan.info> wrote:
> Hi,
> 
> in JSP the HttpSession is an implicit object called
> 'session'. You can put
> objects into the 'session' like this :
> 
> session.setAttribute("key",<object-variable-name>);
> 
> in a Struts Action you can get a refence to the
> session from the Request
> object's getSession method call.
> if you were to give that HttpSession you declare the
> variable name 'session'
> then you could use what you see above.
> 
> But even better than that, do a Google search for
> your questions, you will
> be surprised how much information you can
> find on the web yourself.
> 
> Matt
> 
> -----Original Message-----
> From: Julia Weaver
> [mailto:dreamweaver_y03@yahoo.com]
> Sent: Friday, 16 April 2004 11:18 PM
> To: Struts Users Mailing List
> Subject: Re: Row
> 
> 
> Hi,
> Could you please tell me how to put data in session?
> Could you please give me an example?
> Thanks,
> 
> 
> --- Sapt <ha...@indonesian-aerospace.com> wrote:
> > 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" <ha...@indonesian-aerospace.com>
> > To: "Struts Users Mailing List"
> > <us...@struts.apache.org>
> > Sent: Thursday, April 15, 2004 11:11 AM
> > Subject: Re: Row
> >
> >
> > > u can try displaytag from
> displaytag.org..........
> > > ----- Original Message -----
> > > From: "Iwan Soenarto (IT)"
> > <iw...@jababeka.co.id>
> > > To: <us...@struts.apache.org>
> > > 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:
> > user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail:
> > user-help@struts.apache.org
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> > user-help@struts.apache.org
> >
> 
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online by April 15th
> http://taxes.yahoo.com/filing.html
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 



	
		
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Row

Posted by Matthew Ryan <ma...@matthewryan.info>.
Hi,

in JSP the HttpSession is an implicit object called 'session'. You can put
objects into the 'session' like this :

session.setAttribute("key",<object-variable-name>);

in a Struts Action you can get a refence to the session from the Request
object's getSession method call.
if you were to give that HttpSession you declare the variable name 'session'
then you could use what you see above.

But even better than that, do a Google search for your questions, you will
be surprised how much information you can
find on the web yourself.

Matt

-----Original Message-----
From: Julia Weaver [mailto:dreamweaver_y03@yahoo.com]
Sent: Friday, 16 April 2004 11:18 PM
To: Struts Users Mailing List
Subject: Re: Row


Hi,
Could you please tell me how to put data in session?
Could you please give me an example?
Thanks,


--- Sapt <ha...@indonesian-aerospace.com> wrote:
> 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" <ha...@indonesian-aerospace.com>
> To: "Struts Users Mailing List"
> <us...@struts.apache.org>
> Sent: Thursday, April 15, 2004 11:11 AM
> Subject: Re: Row
>
>
> > u can try displaytag from displaytag.org..........
> > ----- Original Message -----
> > From: "Iwan Soenarto (IT)"
> <iw...@jababeka.co.id>
> > To: <us...@struts.apache.org>
> > 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:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
>





__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Row

Posted by Julia Weaver <dr...@yahoo.com>.
Hi,
Could you please tell me how to put data in session?
Could you please give me an example?
Thanks,


--- Sapt <ha...@indonesian-aerospace.com> wrote:
> 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" <ha...@indonesian-aerospace.com>
> To: "Struts Users Mailing List"
> <us...@struts.apache.org>
> Sent: Thursday, April 15, 2004 11:11 AM
> Subject: Re: Row
> 
> 
> > u can try displaytag from displaytag.org..........
> > ----- Original Message -----
> > From: "Iwan Soenarto (IT)"
> <iw...@jababeka.co.id>
> > To: <us...@struts.apache.org>
> > 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:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 



	
		
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Row

Posted by Sapt <ha...@indonesian-aerospace.com>.
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" <ha...@indonesian-aerospace.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Thursday, April 15, 2004 11:11 AM
Subject: Re: Row


> u can try displaytag from displaytag.org..........
> ----- Original Message -----
> From: "Iwan Soenarto (IT)" <iw...@jababeka.co.id>
> To: <us...@struts.apache.org>
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Row

Posted by Sapt <ha...@indonesian-aerospace.com>.
u can try displaytag from displaytag.org..........
----- Original Message ----- 
From: "Iwan Soenarto (IT)" <iw...@jababeka.co.id>
To: <us...@struts.apache.org>
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org