File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes passing arraylist from jsp to jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "passing arraylist from jsp to jsp" Watch "passing arraylist from jsp to jsp" New topic
Author

passing arraylist from jsp to jsp

brams mun
Greenhorn

Joined: Nov 27, 2003
Posts: 25
i am getting some problem in sending an arraylist from one jsp to other, can u pls help me out of this.
thnx.
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Originally posted by Alexy:
i am getting some problem in sending an arraylist from one jsp to other, can u pls help me out of this.
thnx.

1o) what kind of "some problem" are you getting?
2o) how are you sending the arraylist from one jsp to other?
we need more info Alexy.


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Try this one :
Write this code in first JSP
request.setAttribute("ArrayListID",ArrayListName);
Retrieve the same in another JSP -
ArrayListName=(ArrayList)request.getAttribte("ArrayListID");
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Welcome to the Ranch Alexy/Amar ans Rahul!
You'll find this forum a great place to seek help on JSP pages, and there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it.
In particular, your display name must be a first name and a last name, separated by a space character.
Thanks!
bear
JSP Fourm Bartender
[ November 28, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: passing arraylist from jsp to jsp