| Author |
jsp:include
|
Tiago Fernandez
Ranch Hand
Joined: May 16, 2003
Posts: 167
|
|
Hi, What's wrong with this include? <jsp:include page="<%= getServletContext().getInitParameter("contextPath") + "header.jsp"%>" flush="true" /> It doesn't works... Tks!
|
Tiago Fernandez
http://www.tiago182.spyw.com/
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56528
|
|
That greatly depends on what getServletContext().getInitParameter("contextPath") resolves to. Clue? hth, bear
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Tiago Fernandez
Ranch Hand
Joined: May 16, 2003
Posts: 167
|
|
Hey Bear, The getServletContext().getInitParameter("contextPath") works fine, I use it in my <base> html tag. It just don't work in the jsp:include... Any idea? Tks!
|
 |
Tiago Fernandez
Ranch Hand
Joined: May 16, 2003
Posts: 167
|
|
Well, I got this fixed doin' the followin': <jsp:include page="/header.jsp" flush="true" /> Best regards!
|
 |
 |
|
|
subject: jsp:include
|
|
|