ArrayList is not retrieviable from request.getAttribute method(jsp/servlet)

hi

i m trying to retrieve a request Attribute which is a ArrayList object in previous page but it is not retrieviable in next page .this is happening well through

session.getAttribute()

i m not getting why this is happen.

i have added util.ArrayList also

Ayone help me

[309 byte] By [Master_Arunesha] at [2007-11-27 5:04:04]
# 1
ArrayList myList = (Object) session.getAttribute("attributeName"); does not it work?
AnanSmritia at 2007-7-12 10:22:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

my friend,

if it is not happening with request object but attribute is working with session Object.In that case the Request Object is being destroyed(@ client side) while navigating to the new page.

in order to use it you may have to forward the page instead of redirecting.

Hope that might help :)

REGARDS,

RaHuL

RahulSharnaa at 2007-7-12 10:22:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
ArrayList list=(ArrayList)request.getAttribute("array");hope this works
santhoshreddythuragaa at 2007-7-12 10:22:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Typo in my post. please ignore the typo
AnanSmritia at 2007-7-12 10:22:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...