The first time a page is requested, it undergoes several conversions: from JSP to Java code to HTML. The first transformation from JSP to Java code causes a slight delay in performance that is easily avoided by pre-compiling your JSPs with the Java compiler.

You can pre-compile individual JSPs at application startup by specifying them in your web application deployment descriptor. Here is an example of what you’d add for a page called MyPage.jsp to web.xml in enclosing <web-app> tags:




An explanation of each tag is as follows:

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices