This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Include static content in a JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Include static content in a JSP" Watch "Include static content in a JSP" New topic
Author

Include static content in a JSP

Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
In question 22 of the final mock exam. I only choose A for including static content in a JSP, because with include the content is added during compile time.

With the jsp:include directive you can include dynamic content in a JSP and it's not guarantied that footer.html is only static content. So why this option is also true?


Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Originally posted by Remko Strating:
... it's not guarantied that footer.html is only static content.

A non-static html file? Not possible.


A good workman is known by his tools.
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
It would be easier for people to help you if you posted the question to which you refer
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
Theoretically you could map the html-extension to a servlet, but I understand that I've thought to far.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Include static content in a JSP