Hello,
Is there a tag syntax for building a string array where scriptlets
aren't necessary?
<c:forEach var="row" items="${rs.rows}">
<c:set var="fruits"><c:out value="${row.fruits}" /></c:set>
<c:set var="vegatables"><c:out value="${row.vegatables}" /></c:set>
</c:forEach>
<%
String fruits = "" + pageContext.getAttribute("fruits");
String vegatables = "" + pageContext.getAttribute("vegatables");
String[] food = new String[] { new String(fruits), new
String(vegatables) };
%>
'pageContext.getAttribute()' returns an object. Is there a better way to
cast it as a String other than concatenating an empty string to the
beginning?
Regards,
Bob V
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------