the object is visible only for a request.
-----Original Message-----
From: Sab [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 12:57 PM
To: 'Struts Users Mailing List'
Subject: Object in request
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"/>
I have 2 layers
One.jsp uses this mycart object and gets this object.
This page links to another jsp say- two.jsp (which is not using the
mycart object)
Two.jsp again calls one.jsp.
When I put mapping from two.jsp to one.jsp it says the mycart is not
found.
What may be causing this?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]