I
ittay.dror
Hi,
I have this example (jsp 2.0):
some_file.jsp:
.....
<c:forEach items="${myItems}" var="foo">
${foo} <!-- works fine -->
<jsp:include page="mypage.jsp"/>
</c:forEach>
mypage.jsp:
${foo}
the expression in mypage doesn't evaluate to any value. i used cut
and got the same results, and foo is there for sure in some_file.jsp.
i also tried to include from a tag, using pageContext.include(), same
result
i guess i can pass parameters to mypage.jsp using 'param', but i don't
want to do that, in the real case that i have (i want to pass
everything to this page, because i use this include generically in many
places, and using different pages)
i can (and prefer) to do it from a tag
thanx
ittay
I have this example (jsp 2.0):
some_file.jsp:
.....
<c:forEach items="${myItems}" var="foo">
${foo} <!-- works fine -->
<jsp:include page="mypage.jsp"/>
</c:forEach>
mypage.jsp:
${foo}
the expression in mypage doesn't evaluate to any value. i used cut
and got the same results, and foo is there for sure in some_file.jsp.
i also tried to include from a tag, using pageContext.include(), same
result
i guess i can pass parameters to mypage.jsp using 'param', but i don't
want to do that, in the real case that i have (i want to pass
everything to this page, because i use this include generically in many
places, and using different pages)
i can (and prefer) to do it from a tag
thanx
ittay