|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
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? Erwin |
|
#2
|
||||
|
||||
|
<jsp:include page="footer.jsp" flush="true"/> is the code...
i have not seen any variation in this in terms of passing dynamic page names to it... there are other methods, i am sure this will help you: http://developer.java.sun.com/devel...rogramming/jsp/ |
|
#3
|
|||
|
|||
|
Code:
<% String footerPage = "footer"; footerPage += session.getAttribute( "custFootId" ); footerPage += ".jsp"; %> <jsp:include page="<%=footerPage%>" flush="true"/> |
|
#4
|
|||
|
|||
|
Thanks again, Brikcker42
Yet again it's You who's helping me out... Erwin |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Including another page in a jsp |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|