File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servletcontext & servletconfig initilization parameter

 
gurneeraj singh
Ranch Hand
Posts: 80
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no replies...
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They may have forgotten scriptlets. What is the exact question/answers ?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic