• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help frank!!!!!

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic