• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp precompile

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Below is the text from HFSJ chap 7 about jsp precompilation

you make a request for JSP appending a query string "?jsp_precompile", and the Container might (if it chooses) do the translation/compilation right then instead of waiting for the first real request.


My question is:
1. from where do we make this request with the query string. do we do this or does the Container do this ?
2. Is there any difference between a jsp which has been declared as a servlet in DD and a jsp which has not been declared as a servlet in DD.
3. how do we precompile a jsp in tomcat ?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

1. from where do we make this request with the query string. do we do this or does the Container do this ?


The container is supposed to support precompilation when the request parameter "jsp_precompile" is used. Check the JSP specification, JSP.11.4.2 Precompilation Protocol. I don't you'll have such a question at the exam.

2. Is there any difference between a jsp which has been declared as a servlet in DD and a jsp which has not been declared as a servlet in DD.


If you declare it in DD, you can access it with different mappings. You can also set some servlet specific properties via the servlet tag.

3. how do we precompile a jsp in tomcat ?


There's a Tomcat forum. Please ask there, or look at Tomcat's documentation.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic