Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: jsp:include and include directive


Message #1 by "rgsiva" <rghsiva@e...> on Mon, 2 Apr 2001 07:41:02 +0530
<%@ include ... is the include directive, and it requests the inclusion at
servlet compile time.

<% jsp:include ... does the inclusion at page request time.

In practice if the thing you're wanting to include will always be the same,
use the first version - it's quicker. If the include can change (e.g. you've
got some news docs in there somewhere) then the second version is better as
it avoids the need for recompilation.

---
Danny Ayers
http://www.isacat.net

<- -----Original Message-----
<- From: rgsiva [mailto:rghsiva@e...]
<- Sent: 02 April 2001 08:11
<- To: Pro_JavaServer_Pages
<- Subject: [pro_jsp] jsp:include and include directive
<-
<-
<- Hi Gurus
<- Please explain me the difference between <% jsp:include  ../> and <%@ 
<- include ..%>
<- Thanks in advance
<-
<- with regaeds
<- Jothi
<-

  Return to Index