I am not able to understand what is the function of this line in web.xml
javax.faces.STATE_SAVING_METHOD
javax.faces.STATE_SAVING_METHOD parameter is used to specify where the state should be saved.
If you want to save the state on the server (which is the default in the JavaServer Faces reference implementation), specify the param-value value as server.
Otherwise to save the state on the client side we can specify client in the param-value.
If the state is saved on the client, the state of the entire view is rendered to a hidden field on the page.