• Post Reply Bookmark Topic Watch Topic
  • New Topic

doubt about PageContext Duration  RSS feed

 
Erica Barbato
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All, I have this doubt about the PageContext attribute duration (unfortunately I can't do tests since my laptop is broken and I am currently using a very slow eee ): how long will the Pagecontext's attributes last? as long as the jsp-translated-servlet instance?

thanks,
erica
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
During the execution of a single page.
 
Erica Barbato
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:During the execution of a single page.


hi, thank you for your reply, but it is still not clear to me...
I have a jsp where I can perform multiple request (so every request will reload the same jsp with a different status) if I set an attribute in the Pagecontext will this attribute be available across all the requests in the same jsp?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Those are separate executions, so, no.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!