• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with include tag

 
Vaibhav Deshpande
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
In my haeder fiel i declared global variables i needed on every page,
can i use following include tag
when i am using following line of code on top of my page it work.
<%@ includefile='./../../GEN/GEN/header.jsp'%>
but when i try to use include as a jps include like the code below

<jsp:includepage='../../GEN/GEN/header.jsp' flush='true'/>
thanks,
vaibhav
this line not working .
 
john guthrie
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think that's how it's supposed to work. their are advantages and drawbacks for both the include directive and the jsp:include, er, thingy. one advantage include has over jsp:include is that it can reference variables in the main page
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!