File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

implicit object doubt

 
Venkata Kumar
Ranch Hand
Posts: 110
Firefox Browser Java MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In jsp we can access the context initialization parameters, which are declared in web.xml, using the implicit object initParam.
Similarly how do we access servletconfig initialization parameters in jsp. I want to print the values using expression language and don't want to use scriptlets.

following is the relevant web.xml entries


Thanks,
venkat
 
Chinmaya Chowdary
Ranch Hand
Posts: 432
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Venkat.
I want to print the values using expression language and don't want to use scriptlets.
As far my knowledge concerned, I think in EL we can't get.
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a discussion about that here: http://www.coderanch.com/t/168431/Web-Component-Certification-SCWCD/certification/EL-retrieving-init-param-servlet
 
Venkata Kumar
Ranch Hand
Posts: 110
Firefox Browser Java MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sebastian.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic