• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

LOAD-ON-START FOR JSP

 
hasan khan
Ranch Hand
Posts: 223
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as per http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd on line no. 895 it says
"If a jsp-file is specified and the load-on-startup element is present, then the JSP should be precompiled and loaded".

what does it mean, who should PRECOMPILE it, the CONTAINER or me (deployer) ?
 
Charles Lyons
Author
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
who should PRECOMPILE it, the CONTAINER or me (deployer)?

The container - all this means is that translation and compilation occurs at deployment time and not when the first request for the JSP is received. This means all requests take (roughly) an equal time to complete and there is no delay on the first.

If you do want to compile it yourself (e.g. using the jspc tool), you should deploy it as a servlet in the usual manner, using <servlet-class> and not <jsp-file>.
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this thread.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic