• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get data from pageContext

 
KedariNadh vsilla
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I have an application where i stored all the beans in a ArrayList and set the arrayList to pageContext object.Now in my jsp i want to retrieve the ArrayList from pageContext and iterate each index.Can any one plse give the snippet.
Thank you.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use real words when posting to the forums. Abbreviations such as "plse" in place of "please" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using the El, you simply name the scoped variable. If you placed data in page scope using the named xyz, the code is simply:

Be aware that page-scoped variables only exist within the page in which they are created.

For iteration, the <c:forEach> tag is used.
[ December 29, 2008: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic