IntelliJ IDEA 2016.2 Help

Specifying the Servlet Initialization Parameters

You can customize the servlet initialization by specifying initialization parameters of the servlet. This allows the servlet to perform various one-time activities by overriding the init method of the Servlet interface. An initialization attribute is defined through the Name and Value parameters. In the Web application deployment descriptor web.xml, these parameters are presented as <param-name> and <param-value> elements.

To specify the initialization parameters

  1. Open web.xml and switch to the General tab.
  2. To add a parameter, click add in the Servlet Initialization Params pane.
  3. Specify the name and the value of the initialization attribute in the Name and Value text boxes.
  4. Enter a description in the Description text box.
  5. To remove a parameter, select the relevant row and click delete

See Also

Last modified: 23 November 2016