You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Adam Sherman <ad...@tritus.ca> on 2003/03/25 02:47:35 UTC
c:out output problem
The following jsp:
<c:forEach items="${list.headers}" var="header">
<th><c:out value="${header}" /></th>
</c:forEach>
Where ${list} is a Bean with a getHeaders() that returns a Collection
which, in this case, is an ArrayList of Strings.
The ${list} object is used elsewhere and works perfectly so I know it is
being properly set.
The above outputs:
org.apache.taglibs.standard.lang.jstl.ImplicitObjects$7@1dc049d
org.apache.taglibs.standard.lang.jstl.ImplicitObjects$7@1dc049d
(There suppose to be two headers.)
Any ideas?
Thanks,
A.
--
Adam Sherman
Tritus CG Inc.
http://www.tritus.ca/
+1 (613) 797-6819
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: c:out output problem
Posted by James Watkin <ja...@anderson.ucla.edu>.
I was able to duplicate your problem. The solution:
change <c:out value="${header}" />
to <c:out value="${pageScope.header}" />
- Jim
At 08:47 PM 3/24/2003 -0500, you wrote:
>The following jsp:
><c:forEach items="${list.headers}" var="header">
> <th><c:out value="${header}" /></th>
></c:forEach>
>
>Where ${list} is a Bean with a getHeaders() that returns a Collection
>which, in this case, is an ArrayList of Strings.
>
>The ${list} object is used elsewhere and works perfectly so I know it is
>being properly set.
>
>The above outputs:
>
>org.apache.taglibs.standard.lang.jstl.ImplicitObjects$7@1dc049d
>org.apache.taglibs.standard.lang.jstl.ImplicitObjects$7@1dc049d
>
>(There suppose to be two headers.)
>
>Any ideas?
>
>Thanks,
>
>A.
>
>--
>Adam Sherman
>Tritus CG Inc.
>http://www.tritus.ca/
>+1 (613) 797-6819
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
______________________________
James Watkin
ACIS Software Development
The Anderson School at UCLA
james.watkin@anderson.ucla.edu
Voice: 1-310-825-5030
Fax: 1-310-825-4835
______________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org