I know that I can put beans into request and session. How to create application scoped bean? Should I use servlet context for this?
Asked
Active
Viewed 698 times
0
-
@MockerTim: OP doesn't seem to be using JSF, but plain old JSP/Servlet. – BalusC Feb 10 '12 at 13:48
1 Answers
1
In servlet you can use
getServletContext().setAttribute("name", "value")
and in jsp
jsp:useBean class="foo.Counter" scope="application"

Sandeep Nair
- 3,630
- 3
- 26
- 38