September 17th, 2002, 05:27 AM
Including another page in a jsp
I want to include a footer-file in every other webpage. The default name of the footer file is for example footer.jsp.
In some cases, a specific customer has his specific version of a page. The pagename in that case is the default name extended with a string like "_XX"; example: Footer_XX.jsp.
The pagename postfix is set in a session variable (and can be empty).
At the end of every page, the include directive should look something like this: include file = Filename + the value of the seesion-variable postfix + .jsp
I can't get this to work... any suggestions?
September 17th, 2002, 06:47 AM
September 17th, 2002, 01:21 PM
String footerPage = "footer";
footerPage += session.getAttribute( "custFootId" );
footerPage += ".jsp";
<jsp:include page="<%=footerPage%>" flush="true"/>
September 19th, 2002, 04:41 AM
Thanks again, Brikcker42
Yet again it's You who's helping me out...