Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp translation

 
Gunnar Maluf
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
 
Ankit Garg
Sheriff
Posts: 9578
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 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...
 
Christian Nicoll
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.
 
Sandeep Bhandari
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"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic