Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
The ServletConfig defines how a servlet is to be configured is passed to a servlet in its init method. Most servlet containers provide a way to configure a servlet at run-time (usually through flat file) and set up its initial parameters. The container, in turn, passes these parameters to the servlet via the ServetConfig.
Please take a look at the sample below , the Init-Param "config" could be read by using "ServletConfig" in init(ServletConfig config) method.
<servlet>
<servlet-name>action</servlet-
<servlet-class>org.apache.
<init-param>
<param-name>config</param-
<param-value>/WEB-INF/struts-
</init-param>
<load-on-startup>2</load-on-
</servlet>
This Portal is intended to put all Java/J2ee related topics at one single place for quick referance, not only Technical , but also the Project Management Related thing such as Development Process methodoogies build process, unit testing etc.,
This Portal has More than 500 Java Interview Questions (also could be Considered as Quick Notes) very neatly separated topic by topic with simple diagrams which makes you easily understandable. Importantly these are from our Realtime expericance.