- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
if (scope.equals("page")) {
beanObject = context.getAttribute(bean);
} else {
if (scope.equals("request")) {
beanObject = context.getRequest().getAttribute(bean);
} else {
if (scope.equals("session")) {
beanObject = context.getSession().getAttribute(bean);
} else {
if (scope.equals("context")) {
beanObject = context.getServletContext().getAttribute(bean);
}
}
}
}
Follow us!