struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishna Srinivasan, ISDC Chennai" <krish...@hcltech.com>
Subject RE: Object in request
Date Mon, 14 Feb 2005 08:19:46 GMT
the object is visible only for a request.

-----Original Message-----
From: Sab [mailto:bhutkar@comcast.net]
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message