• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in Include File

 
vasu devan
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends,

I have some peculiar Problem, and not able to find Solution,here is the probelom

I am Using j2ee Application which is deployed in Websphere 6.0.0.1,Most of the Pages i used Include tag to include some static JSP files

<%@taglib uri="/WEB-INF/classes/com/netcast/tags/NC_CustomTags.tld" prefix="nctTags" %>
<nctTags:body />

above is the code is available in IncludeFiles/NC_CustomTagInc.jsp

When i called the above page using Following tag in Main jsp file

<%@include file="../IncludeFiles/NC_CustomTagInc.jsp" %>

Its not Working

instead i replaced the Include file Code into main JSP,its working fine

Is there any probelom around

Note:
The same Application working fine for Resin 3.0.14 , Tomcat 5.0.28

Any Help is Highly appreciated

Regards
Vasu
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The include directive is used to include static content.
I think you should try to use <jsp:include> instead.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Satou kurinosuke:
The include directive is used to include static content.
I think you should try to use <jsp:include> instead.


include directive is not for static content we can inculde jsp pages using this. But this would be a static include, means the page would be included at compile time. On the other hand jsp include is a dynamic include and the page is included at runtime.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic