• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

scopes in the jsp

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i know the 4 scopes: page,request,session,application
but what is the usage of scope in jsp?
in every technologies and frame works some scopes are defined .but how they works?
pls explain it!

thank you
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The scope of a variable determines how long it will last and who can access it. Binding a variable to context scope will cause it to last the lifetime of the application and make it available to everyone. Binding it to session will make it available only to the user who owns the session and only for the length of that session. Request scope keeps a variable alive for one request/response cycle and allows it to be accessed by different components within that cycle. Page scoped values are gone as soon as context is moved to another resource.
 
ajay verma
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Ben Souther
thanks a lot
i am sure that you can answer my next question also

thanks again
 
reply
    Bookmark Topic Watch Topic
  • New Topic