aspose file tools*
The moose likes Servlets and the fly likes help frank!!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "help frank!!!!!" Watch "help frank!!!!!" New topic
Author

help frank!!!!!

asheet anand
Ranch Hand

Joined: Nov 15, 2000
Posts: 83
hi everyone,
could you please explain to me how super.init(s1),where
s1 is a serverconfig refrence works?
how getinitparametres() is invoked without using s1 in the subclass which use getinitparameters() when super.init() is used?
please explain me in steps:
bye
asheet
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
As an aside, if you plan to be a sucessful Java programmer you really should take more care with the spelling and upper/lower case of your questions and examples. I realize that for many people here, English is not their first language, and I try my best to understand the phrasing of questions, but the exact details of class names, method names, error messages and so on are vital.
I assume you are referring to the getInitParameter() method implemented in the GenericServlet class and inherited by the HttpServlet class.
If you call super.init(config) in your servlet, then the ServletConfig supplied to your init routine is passed back to the init(ServletConfig) method of genericServlet, which stores a reference to the supplied ServletConfig object. If you later call getInitParameter(name) in your servlet, it invokes the getInitParameter(String) method implemented in GenericServlet which gets the specified parameter value from the stored ServletContext and returns it to your servlet.
Does this help?


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
 
subject: help frank!!!!!