Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pageContext usage

 
amarkirt saroay
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it correct to access the context param as:

${ pageContext.servletContext.initParameter.driver }

if there is a context param as driver? If not correct then what are the rules to access methods with EL ?

 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

initParameter itself is a implict object , just ${initParameter.driver} would do.. Check out EL implict objects.
 
vani venkat
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
implicit object in EL to access context parameters is initParam . it is not possible to access context Parameters using pageContext.servletConfig.servletContext.initParam.<name> . refer this FAQ
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic