my dog learned polymorphism*
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
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.
 
 
subject: Include static content in a JSP
 
Similar Threads
difference between include directive &action tag
HF final mock exam Q22
Difference in include and jsp:include
include directive doubt?
JSP to include servlet