This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes implicit object doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "implicit object doubt" Watch "implicit object doubt" New topic
Author

implicit object doubt

Venkata Kumar
Ranch Hand

Joined: Apr 16, 2008
Posts: 110

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


SCJP 5.0, SCWCD 5, preparing for SCDJWS
Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
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

Joined: Feb 23, 2009
Posts: 1183
There is a discussion about that here: http://www.coderanch.com/t/168431/Web-Component-Certification-SCWCD/certification/EL-retrieving-init-param-servlet


JDBCSupport - An easy to use, light-weight JDBC framework -
Venkata Kumar
Ranch Hand

Joined: Apr 16, 2008
Posts: 110

Thanks Sebastian.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: implicit object doubt
 
Similar Threads
config.getInitParameter
mapping all jsps to single servlets init parameters
implict object of jsp: "config"
anywhere to set "init-param" type values for a JSP page ?
Jsp config init params