This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP EL have access to HttpSession & ServletConfig ??

 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlet init parameters in EL
 
Abhijit Rai
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!