• 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic