Nevermind...  I think Request covers it.  In the User Guide (2.2 JavaBeans
and Scope) it says:

It is important to remember that JSP pages and servlets in the same web
application share the same sets of bean collections. For example, a bean
stored as a request attribute in a servlet like this:

MyCart mycart = new MyCart(...);
request.setAttribute("cart", mycart);

is immediately visible to a JSP page which this servlet forwards to, using a
standard action tag like this:

<jsp:useBean id="cart" scope="request"
class="com.mycompany.MyApp.MyCart"/>

-----Original Message-----
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 6:01 PM
To: [EMAIL PROTECTED]
Subject: JavaBeans and Scope, Response?


I have what seems to be a need for a Response scope.  I create a bean in an
Action that only the next JSP page needs to see.  I could put it in the
session, but it's not necessary and I'll have to clean-up.  Is there a way
in Struts to put the Bean in a Response scope?

--Michael Marrotte




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

Reply via email to