This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


JavaRanch » Java Forums » Java » JSP
Bookmark "How implicit object "config" work" Watch "How implicit object "config" work" New topic
Author

How implicit object "config" work

ram gaurav
Ranch Hand

Joined: Mar 29, 2006
Posts: 208
HI

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.

Thanks
Regards
Gaurav
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="http://sd.balasubramani.googlepages.com" target="_blank" rel="nofollow">www.sd.balasubramani.googlepages.com</a>
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How implicit object "config" work
 
jQuery in Action, 3rd edition