| Author |
How to get attribute in a JSP using EL pageContext Implicit Object
|
mohitkumar gupta
Ranch Hand
Joined: May 18, 2010
Posts: 517
|
|
I am able to call getMethod of HttpServletRequest using EL pageContext Object
but unable to call the getAttribute of HttpServletRequest using EL pageContext Object.
How to get request attribute in a JSP using EL pageContext Implicit Object ?
|
OCPJP 6.0 93 %
|
 |
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50691
|
|
|
You don't. Just use one of ${test} or ${requestScope.test}
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
mohitkumar gupta
Ranch Hand
Joined: May 18, 2010
Posts: 517
|
|
Thanks Bear.
I was just trying different ways to retrieve it.
I failed to find any such thing in Specification's.
|
 |
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50691
|
|
|
Why should there be?
|
 |
mohitkumar gupta
Ranch Hand
Joined: May 18, 2010
Posts: 517
|
|
As there are Rules corresponding to these things in Specification,I thought it may be also there.
Anyways,Thanks for the clarification.
|
 |
mohitkumar gupta
Ranch Hand
Joined: May 18, 2010
Posts: 517
|
|
|
Is there some reason due to which its not allowed ?
|
 |
 |
|
|
subject: How to get attribute in a JSP using EL pageContext Implicit Object
|
|
|