• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Translation Unit....

 
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you explain about translation unit in jsp pages?
thanks
daniel
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A Translation Unit is a set of pages that will be translated into a single servlet.
So... when you use a static include (<%@ include file="blah.jsp" %> -- that page is combined with the initial page at translation time - and is compiled into a single servlet.
When you use a dynamic include (<jsp:include page="blah.jsp" %> -- the OUTPUT of that page is combined with the initial page at request time -- and are two seperate servlets.
* the PageContext scope makes variables available for that particular translation unit.
* You can't define the same variable more than once in a single transaltion unit.
* You can't define the same bean <jsp:useBean> more than once in a single translation unit.
 
You showed up just in time for the waffles! And this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic