| Author |
how can i set application variable
|
vinodheee kumar
Greenhorn
Joined: Apr 26, 2006
Posts: 9
|
|
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
Joined: Nov 24, 2005
Posts: 14672
|
|
|
Call getServletContext() to retrieve the context and call setAttribute on the ServletContext instance.
|
[My Blog]
All roads lead to JavaRanch
|
 |
 |
|
|
subject: how can i set application variable
|
|
|