> On Sun, 27 Oct 2002, flare wrote:
> 
> Irrespective of whether you're using DynaBeans or not, if it works in
> the latter case, it should work in the former one.  That is, the two
> expressions you've shown are identical, and both tags evaluate their
> attributes as String objects.

<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>
... 

I've tried but doesn't work.. if I try to render the url with a dynabean accessor 
(a_nomefile or 
others) I get an error, the out tag works fine instead.  
I'm using JSTL on Resin 2.1.5  + Linux     

500 Servlet Exception

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)
at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:146)
at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:166)
at 
org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(Expressio
nEvaluatorManager.java:112)
at 
org.apache.taglibs.standard.tag.el.core.ExpressionUtil.evalNotNull(ExpressionUtil.java:85)
at 
org.apache.taglibs.standard.tag.el.core.ParamTag.evaluateExpressions(ParamTag.java:14
8)
at org.apache.taglibs.standard.tag.el.core.ParamTag.doStartTag(ParamTag.java:100)
(...)


--
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