file included with jsp:include doesn't get parameters

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 c:eek:ut
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top