• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can i set application variable

 
vinodheee kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As we know to create request variable and session variable
request.setAttribute(),session.setAttribute() respectively

how can i create application variable in servlet?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Call getServletContext() to retrieve the context and call setAttribute on the ServletContext instance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic