• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Request scope for two jsps  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've arraylist in request scope, which came from action class(have some size).

My jsp going to generate report. When i click my jsp Generate Report button its actually going to previous page(reports home page), thats ok.
And opening the popup with the corrsponding report.

My question is that array list available for reports home page, but not available for pop up. Its giving null pointer exception.

is the request scope is not available for two jsp's ???

How to provide that arraylist to pop up jsp

plz help me

thankx in advance
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Object do not persist across requests. Only String persist. If you want them to persist across requests, you'll need to either pass them along as hidden parameters in the page, or store them in the session (be sure to explicitly remove them when no longer needed).
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how are u generating the popup? what action have you specified for the submit button? you say the page goes back to the report home page when you click button, so the target page of your request becomes the home page.
request scope is definitely sufficient for passing data between two jsps, in your case make sure the right jsps are participating in the information exchange.
 
Shraddha Jain
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops! oh yes!! missed that out totally!! i was completely off the mark then!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!