This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Include static content in a JSP

 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Remko Strating:
... it's not guarantied that footer.html is only static content.

A non-static html file? Not possible.
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be easier for people to help you if you posted the question to which you refer
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Theoretically you could map the html-extension to a servlet, but I understand that I've thought to far.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic