• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing arraylist from jsp to jsp

 
brams mun
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic