File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes How implicit object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How implicit object "config" work" Watch "How implicit object "config" work" New topic

How implicit object "config" work

ram gaurav
Ranch Hand

Joined: Mar 29, 2006
Posts: 208

Can you please explain the exact work of "config" implicit object in JSP.
and i am very thankful if you can give me some example.

Balasubramani Dharmalingam
Ranch Hand

Joined: Dec 06, 2004
Posts: 116
It is the ServletConfig object corresponding to the generated servlet. If you see the servlet code generated by the Container , u can find code as follows,

ServletConfig config = null;
config = pageContext.getServletConfig();

From this u can get the servlet init parameters.

Balasubramani SD,<br />SCJP 1.4,SCWCD 1.4,SCJP 5.0<br /><a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: How implicit object "config" work