Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Jsp translation

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it happen in the first client request or it can happen at deploy time?
What the specs say about it?

regards
 
Sheriff
Posts: 9671
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it happens when the first request for that JSP comes. I have not read the specs but this is my practical experience...
 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A JSP will become a Servlet and for a servlet there are two different ways, when the translation can happen

1) I think the usual way is that it happens when the first client access this JSP.

2) If you want the other behaviour, that the JSP is translated when the web-app is deployed, then you need to use the <load-on-startup> in your Deploment Descriptor.
 
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Christian Nicoll:
A JSP will become a Servlet and for a servlet there are two different ways, when the translation can happen

1) I think the usual way is that it happens when the first client access this JSP.

2) If you want the other behaviour, that the JSP is translated when the web-app is deployed, then you need to use the <load-on-startup> in your Deploment Descriptor.



I think there's something called "precompile" parameter which can be used in browser to pre compile JSP.
Please search on "precompile"
 
Hey cool! They got a blimp! But I have a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic