Hi, I've to iterate a collection of dynabeans (asteAllegati) and encode a URL using a 
parameter (key) that is a property of a dynabean

<c:forEach var="item" items="${requestScope.asteAllegati}" varStatus="status">
<c:url value="/showAllegati.do" var="show">
<c:param name="id" value="${requestScope.id}"/>
<c:param name="tipo" value="${requestScope.tipo}" />
<c:param name="key" value="${item.a_nomefile}" />
</c:url>
...

the code is straightforward, the problem is that I get an error message when JSTL try 
to 
render the third parameter

javax.servlet.jsp.JspException: An error occurred while evaluating custom
action attribute "value" with value "${item.a_nomefile}": Unable to find
a value for "a_nomefile" in object of class 
"org.apache.commons.beanutils.BasicDynaBean"
using operator "." (null)



if I use the following (unreadable) code it works: 

<a href='showAllegati.do?id=<c:out value="${requestScope.id}"/>&tipo=<c:out 
value="${requestScope.tipo}"/>&key=<c:out value="${item.a_nomefile}" />'>


is that a bug or simply dynabens cannot be used that way? 

Thanx 


--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>

Reply via email to