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

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