• Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpRequest carry-over  RSS feed

 
FY Hsieh
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In one JSP (invoking.jsp), there is javascript to open a new JSP page (invoked.jsp) in a new browser window. If I set "request.setAttribute(..)" in invoking.jsp, can I use use "request.getAttribute()" to get it in invoked.jsp ? I got null so I don't know if it is because I opened a new browser window or what ? Does it matter?
 
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
Of course not. Each request has it's own scope.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!