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!
Kenny
-
JSP Include Problem (2 messages)
- Posted by: Kenny Cheang
- Posted on: August 22 2002 18:55 EDT
Threaded Messages (2)
- JSP Include Problem by Lasse Koskela on August 23 2002 07:46 EDT
- JSP Include Problem by Kenny Cheang on August 23 2002 14:20 EDT
-
JSP Include Problem[ Go to top ]
- Posted by: Lasse Koskela
- Posted on: August 23 2002 07:46 EDT
- in response to Kenny Cheang
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) -
JSP Include Problem[ Go to top ]
- Posted by: Kenny Cheang
- Posted on: August 23 2002 14:20 EDT
- in response to Lasse Koskela
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.