struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Ryan" <matt...@matthewryan.info>
Subject RE: Row
Date Fri, 16 Apr 2004 13:31:19 GMT
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 <hari_s@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" <hari_s@indonesian-aerospace.com>
> To: "Struts Users Mailing List"
> <user@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)"
> <iwan.soenarto@jababeka.co.id>
> > To: <user@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


Mime
View raw message