Skip to main content

ServletConfig in Servlet

ServletConfig is just only a object created by container itself.When servlet is loaded on the server at that time container make the servletconfig object by which you can simply do any required change in Web.xml file directly without disturbing any specific servlet. All the configurations can directly change by manipulating in a web.xml file there is no need to modifications in relevant servlet class file. ServletConfig is a interface actually who's object is created by container. by using that object we can do various changes in a servlet files without even touching that servlet file. There are 4 methods available in this interface as: 1 > getInitParameter(); 2 > getInitParameterNames(); 3 > getServletName(); 4 > getServletContext();

Comments

Popular posts from this blog

Conversions of LocalDate , LocalTime and LocalDateTime.

Getting values from joda Date & Time API in java 8

Java Development Kit Released

List of versions of java development kit (JDK). Basically java has various JDK versions as mention in below table. Java SE Version Version Number Release Date Java SE Version Version Number Release Date JDK 1.0 (Oak) 1.0 January 1996 JDK 1.1 1.1 February 1997 J2SE 1.2 (Playground) 1.2 December 1998 J2SE 1.3 (Kestrel) 1.3 May 2000 J2SE 1.4 (Merlin) 1.4 February 2002 J2SE 5.0 (Tiger) 1.5 September 2004 Java SE 6 (Mustang) 1.6 December 2006 Java SE 7 (Dolphin) 1.7 July 2011 Java SE 8 1.8 March 2014 Java SE 9 9 September, 21st 2017 Java SE 10 10 March, 20th 2018 Java SE 11 11 September, 25th 2018 Java SE 12 12 March, 19th 2019 Java SE 13 13 September, 17th 2019