I have a situation where I need to include a certain footer into all the
jsp in my application. But the footer's file name is dynamically generated at runtime. Therefore I can't use <%@include file=...> directive because it doesn't support the syntax like <%@include file = <%= footername%>....
The alternative is to use the xml tags <jsp:include page="<%=footername%>"; flush = "true"> But the problem with this tag is that it is executed at request time, instead of the raw include (at interpretation time) like <%@include>. My footer.jsp is using some of the variables in the outer jsp, and it won't compile by itself. Therefore, I will need the raw include <%@include> provides.
Does anyone have a solution for my problem? Thanks in advance.
[ January 07, 2004: Message edited by: Tom Tang ]