my dog learned polymorphism
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes How to get attribute in a JSP using  EL pageContext Implicit Object Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "How to get attribute in a JSP using  EL pageContext Implicit Object" Watch "How to get attribute in a JSP using  EL pageContext Implicit Object" New topic
Author

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

Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634



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%
OCPJWCD 5.0 98%
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56191
    
  13

You don't. Just use one of ${test} or ${requestScope.test}


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634

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

Joined: Jan 10, 2002
Posts: 56191
    
  13

Why should there be?
Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634

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

Joined: May 18, 2010
Posts: 634

Is there some reason due to which its not allowed ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get attribute in a JSP using EL pageContext Implicit Object
 
Similar Threads
JSP implicit objects
different Scopes In expression language(EL)
Accessing Servlet init Parameter by Expression language
Tag Files and ServletContext
requestScope VS request object