• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp:include standard action

 
vandu matcha
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
if the page attribute of the include standard action is a static html file..does it mean a static inclusion...i think it should not be..right? pls clarify
 
Gaurav Gambhir
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Static inclusion involves including the contents
of the web component in a JSP file at the time the JSP file is translated, <%@ include file="relativeURL" %>
It can refer to file like HTML, JSP, XML, or even
a simple .txt file´┐Żusing a relative URL.

while in dynamic inclusion, the output of another component is included within the output of the JSP page when the JSP page is requested.

<jsp:include page="relativeURL" flush="true" />
<jsp:forward page="relativeURL" />

The page attribute is mandatory. It must be a relative URL, and it can refer to any static or dynamic web component, including a servlet.
 
vandu matcha
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks gaurav..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic