So you're telling us that referencing "${item.a_nomefile}" in a "c:out" tag,
where "item" is an instance of DynaActionForm (or a subclass) actually
prints out the value of that property? I recently started looking into this
issue, and I frankly don't see how that can work. The properties of a
DynaActionForm are not declared with standard JavaBeans accessors, they are
stored in a HashMap. I'm investigating the possibility of an enhancement to
DynaActionForm which just adds an accessor for the HashMap, which would then
allow you to specify an EL expression to get DynaActionForm properties.
> -----Original Message-----
> From: flare [mailto:flare@;flare.it]
> Sent: Monday, October 28, 2002 1:05 PM
> To: Tag Libraries Users List
> Subject: Re: JSTL BUG? Url problem
>
>
> > 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(Evalu
> ator.java:146)
> at
> org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evalu
> ator.java:166)
> at
> org.apache.taglibs.standard.lang.support.ExpressionEvaluatorMa
> nager.evaluate(Expressio
> nEvaluatorManager.java:112)
> at
> org.apache.taglibs.standard.tag.el.core.ExpressionUtil.evalNot
> Null(ExpressionUtil.java:85)
> at
> org.apache.taglibs.standard.tag.el.core.ParamTag.evaluateExpre
> ssions(ParamTag.java:14
> 8)
> at
> org.apache.taglibs.standard.tag.el.core.ParamTag.doStartTag(Pa
> ramTag.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>
--
To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>