• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to pass Arraylist from one JSP to another  RSS feed

 
Naveen Ramanathan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to JSP and was trying to pass an arraylist of strings from one jsp to another via an iframe. But for some reason i get null pointer exception. I am pretty certain i am doing something stupid... but am having a hard time figuring out what is wrong... I would really appreciate it if someone could guide me in this regard...

This is what i am trying to do:
JSP1: testAnnoDriver.jsp



JSP2: testAnno.jsp



I have made a folder under Webapps in tomcat home directory and am running testAnnoDriver.jsp.

Thanks
Naveen Ramanathan
 
Shailesh Narkhede
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are you setting onto request scope,
testAnnotationUUIDs ArrayList Object or testAnnotationUUIDs String ???
 
Naveen Ramanathan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
testAnnotationUUIDs arraylis object.


Thanks
Naveen
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't iframes make a new request to fill their contents? (I almost never use them, so I really don't know.)
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are in completely separate requests. If you want to share things across them you'll need to use the session.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!