Hi. If we send request(first) to
jsp file, container translates it into .java file, compiles, loads the class file, instantiates, initializes, calls the service method and the response will be send to the client. All this happens for first request. If we use <load-on-stratup> all this happens during startup of container except calling service method.
For second request(if we use <load-on-startup> it is first request), container will just calls the service method and serves the client.
Later if any changes made to the jsp file, container detects that, and starts its life cycle again(translating, compiling, etc.).
My question is, how the container knows, there is a change in the jsp file, so i(container) have start the life cycle again? Thankyou.