#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    4
    Rep Power
    0

    problem with <%@ include file=


    I'm just trying to include a header and footer section. The code I'm using inside the <body> tags is:

    <%@ include file="header_logged.jsp" %>
    ...
    <%@ include file="footer.htm" %>

    have I left out somehing because they're not working? The footer.htm is working fine though the header_logged.jsp file has a few errors.
  2. #2
  3. No Profile Picture
    Clueless llama
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2001
    Location
    Lincoln, NE. USA
    Posts
    2,353
    Rep Power
    117
    You are using a static include. This includes all the contents of the specified file at compile time. You may want to use the dynamic include instead. This parses and includes the specified file at run time.

    To use a dynamic include you would use:
    Code:
    <jsp:include page="header_logged.jsp" />
    ...
    <jsp:include page="footer.htm" />
    Hope this helps

IMN logo majestic logo threadwatch logo seochat tools logo