JSTL tags don't evaluate if I import -


i use dynamic include on page:

<div class="top"> <jsp:include page="header.jsp"/> </div> 

this important part in header.jsp:

<h4> jstl tag test: </br>   <c:if  test="${sessionscope.username != null}" >   <c:out value="hello, ${sessionscope.username}"/>   </c:if> </h4> 

the result on main page source is:

<h4> jstl tag test: </br>   <c:if  test=swank != null >   <c:out value="hello, swank"/>  </c:if> </h4> 

i use this: <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> in main page.

does know how can use jstl if import page?

thanks, zoltán

add same declaration

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 

into header.jsp file.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -