This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes implicit object config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "implicit object config" Watch "implicit object config" New topic

implicit object config

subu ananthram
Ranch Hand

Joined: May 16, 2004
Posts: 102

I am a newbie to the jsp and servlet technology and am trying to teach myself.So sorry for any obvious questions

In the using JSP chapter of head first it says that the servletConfig can be accessed using the implicit object config .
It says using the <jsp-file> inside the servlet tag the init params may be configured how can I access these params in my jsp
ie what can i say in a jsp for getServletConfig().getInitParameter("email");

subu ananthram
Ranch Hand

Joined: May 16, 2004
Posts: 102
here are my web.xml file
<web-app xmlns=""
<param-value>my mail</param-value>



any help greatly appreciated
Nikhil Menon
Ranch Hand

Joined: Nov 22, 2004
Posts: 70
Hi subu ananthram,

See this thread, it will certainly clear your doubt..

Hint: You can actually override jspinit() and access the config elements of web.xml.
You also need to provide a servlet mapping correspondingly.

Nikhil Menon
Ranch Hand

Joined: Nov 22, 2004
Posts: 70
See this thread...
I forgot to add this, sorry for inconvenience
melan hen

Joined: Feb 14, 2005
Posts: 17
I'm still wondering how to retrive jsp initial parameters by using EL, following is my web.xml for your reference:
In my /EL/testInit.jsp,I wrote:
but it failed and give a error say :
Unable to find a value for "config" in object of class "org.apache.jasper.runtime.PageContextImpl" using operator "."
Anybody can help me clear this? thanks in advance.

SCJP 1.2 (88%)<br />SCWCD 1.4 (89%)<br />SCBCD (in progress)<br />SCEA (in progress)
I agree. Here's the link:
subject: implicit object config
Similar Threads
Jsp config init params
Config params for servlets: reading in JSP
EL- getting JSP Init Param
Page scope