struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishna Srinivasan, ISDC Chennai" <>
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 []
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"

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

What may be causing this? 

To unsubscribe, e-mail:
For additional commands, e-mail:

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