• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get attribute in a JSP using EL pageContext Implicit Object

 
Mohit G Gupta
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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 ?

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65663
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't. Just use one of ${test} or ${requestScope.test}
 
Mohit G Gupta
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ninkuma
Marshal
Posts: 65663
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why should there be?
 
Mohit G Gupta
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As there are Rules corresponding to these things in Specification,I thought it may be also there.
Anyways,Thanks for the clarification.
 
Mohit G Gupta
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there some reason due to which its not allowed ?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!