This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SCWCD

 
Matt Rogers
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I came accross the following code and am not sure of the purpose of it:

<jsp:include page="<%= \"copyright.html\" %>" />

I am also preparing for the SCWCD, and not sure how much I need to know about JSP "documents" (ie. using XML)... I am using SCWCD Exam study kit...

thanks,

Matt
 
Mukesh Mittal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is same as <jsp:include page="copyright.html" />
 
shanthisri mocherla
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we include static html pages in <jsp:include> actions???
Shanthi
 
Jay Tse
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes we can, but it does not get included during the translation phase.

the directive <%@include file %> gets included during the translation phase before the JSP is compiled into a servlet class.

The <jsp:include> action will include the resource, static or dynamic, during runtime.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic