You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Slimane <z...@skynet.be> on 2002/03/09 23:30:24 UTC

What's the rigth way to do it ?

Hi,

I have a set of Objects (mainly Strings) that I would like to share inside 
my web application for each user. So I was thinking about setting all these 
objects using the HttpSession object. (using the methods getAttribute() and 
setAttribute()).

But in a second thought, as there are only a few String that I need to 
share. I could easily pass them as parameters to my Action classes.

So, I was wondering what's the right way ? If there's only a few Strings, 
isn't it easier to pass them as parameters instead of using the session 
object ?

Thanx in advance for your replys.

Friendly Regards,
Slimane


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>