> It shouldn't work; a.get("b") is not supported in any form by the JSTL
> 1.0 expression language, whether in <c:out> or elsewhere. JSP 2.0
> will introduce functions that could conceivably be mapped to such a
> method, though only through a static wrapper that would cause the
> expression to look more like
>
> ${get(dynabean, property)}
ROTFL, I always thought dynabeans were supported (BTW I've only started using JSTL a
week ago), well.. I've a good news , just try my code out
--- cut here ---
<%@ page language="java" import="org.apache.commons.beanutils.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%
DynaProperty[] props = new DynaProperty[2];
BasicDynaClass dClass = null;
props[0] = new DynaProperty("ciccio");
props[1] = new DynaProperty("pippo");
try {dClass = new BasicDynaClass("flare",
Class.forName("org.apache.commons.beanutils.BasicDynaBean"), props);
} catch (Exception e) { e.printStackTrace(); }
DynaBean dbean = dClass.newInstance();
dbean.set("ciccio","uno");
dbean.set("pippo","due");
pageContext.setAttribute("flare",dbean);
%>
<c:out value="${flare.ciccio}"/>
<%=((DynaBean)pageContext.getAttribute("flare")).get("pippo")%>
-- cut here ----
Perhaps JSTL works better than his coders think of ;)))))
--
To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>