Request.setAttribute between classes

Hi I'm trying to keep a userid from a class call ActionLogin to then use it to select products bought by that user

request.setAttribute("userid", login);

Then I realize that userid isn't keeping anything when I'm tryin got access it with

request.getParameter("userid") or

request.getAttribute("userid")

I just get a null string when I do this from another class or that same class.. am I supposed to use something else?

[535 byte] By [Rachel@awwa.neta] at [2007-11-27 5:52:08]
# 1
Attributes which are set in the ServletRequest have a lifetime of one request. In your case, rather use session instead.And there is a certain difference between parameters and attributes.
BalusCa at 2007-7-12 15:42:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...