Search code examples
javajspjakarta-eelifecycle

About the jsp life cycle


When a request is mapped to a JSP page, the web container first checks whether the JSP page’s servlet is older than the JSP page.

What does it mean by the JSP page’s servlet is older than the JSP page?


Solution

  • It means if your JSP page last modified time is later than the JSP compiled servlet. If yes then it will generate the servlet again and compile.