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

servletcontext & servletconfig initilization parameter

 
gurneeraj singh
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is written on pg:857 question number 60 of HFSJ, that

"only context params can be directly accessed from JSP's"

But according to me we can access

servletContext parameters using



and

servletConfig parameters using




So, they both are directly accessible from a jsp.

please correct if i am wrong.

Thanks in advance
[ October 20, 2008: Message edited by: gurneeraj singh ]
 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree to what your saying. If i think from EL angle [which is not mentioned in the question] then servlet context params can be accessed directly using ${initParam.paramName} which servlet config params cannot be accessed from EL in JSPs.

Lets see what others have to say.
 
gurneeraj singh
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no replies...
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They may have forgotten scriptlets. What is the exact question/answers ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic