• Post Reply Bookmark Topic Watch Topic
  • New Topic

Application scope for variable in jsp  RSS feed

 
Ra Sh
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I want to defien a variable in jsp as application scope variable
I am not using any beans or anything.. only 3-5 jsp's
I want that when I define any variable in first jsp as application variable
it can be accessed by any other applications jsp.
How should I proceed??
Can u pls explain with array or vector
All answers will be appreciated
Rakesh
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66157
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The application scope (also known as the servlet context) is exposed to all JSP pages via the built-in application scripting variable.
You can set values into, and retrieve them from, this scope via:

hth,
bear
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!