JSP Include Problem


Web tier: servlets, JSP, Web frameworks: JSP Include Problem

  1. JSP Include Problem (2 messages)

    Hi Everyone,

    I try to include some static HTML page in my JSP. But the file name of this static page is stored in the database and can only be obtained during the runtime. This means that I can not use <%@ include>. The only way to do it is to use <%jsp include>. Here is how I do it:

    <jsp:include page="<%= filename %>" flush="true" />

    But it doesn't work. Does anyone know what the problem is? I am using VAJ 4.0 and Websphere 3.5.3.

    Thank you very much!


    Threaded Messages (2)

  2. JSP Include Problem[ Go to top ]

    Have you double checked the path for the included file? I've encountered this kind of glitches several times and almost every time there was a missing "/" in the beginning. (The rest of the cases were invalid security constraints for the included file)
  3. JSP Include Problem[ Go to top ]

    I am sure the path is right. The problem is I can include a JSP just fine. Once I change it to a static HTML page, it doesn't work.