aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSP EL have access to HttpSession & ServletConfig ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JSP EL have access to HttpSession & ServletConfig ??" Watch "JSP EL have access to HttpSession & ServletConfig ??" New topic
Author

JSP EL have access to HttpSession & ServletConfig ??

Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
How can a JSP EL have access to HttpSession & ServletConfig objects?
There is initParam that can give you the context parameters, but then how can a JSP access its servlet config parameters using EL?


SCJP, SCWCD, SCBCD
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Servlet init parameters in EL


[My Blog]
All roads lead to JavaRanch
Abhijit Rai
Ranch Hand

Joined: Aug 07, 2008
Posts: 41
hi,
Guess for session its
${pagecontext.request.session}
for servlet config its
${pagecontext.servletConfig}
To access init parameters in servletconfig you will have to work a little
try solving it as an excercise.
[ September 19, 2008: Message edited by: Abhijit Rai ]

SCJP5 ,SCWCD5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP EL have access to HttpSession & ServletConfig ??