Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > file included with jsp:include doesn't get parameters

Reply
Thread Tools

file included with jsp:include doesn't get parameters

 
 
ittay.dror@gmail.com
Guest
Posts: n/a
 
      12-07-2005
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pass parameters to included files in asp jacobyv@sis.unibe.ch ASP General 1 11-26-2005 12:42 PM
Special characters don't get thru from included script files in .aspx? tonicvodka ASP .Net 0 08-15-2005 09:48 AM
Can I get TCPMon free without a bunch of other included software? 6tc1@qlink.queensu.ca Java 1 09-13-2004 09:29 PM
Get contents of included JS file from within JS? Matt Kruse Javascript 3 12-28-2003 12:39 AM
Include file in another included file Vojma ASP General 6 12-02-2003 11:00 AM



Advertisments