You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Kransen, J." <j....@srn.minjus.nl> on 2004/03/25 09:42:09 UTC
custom tag called with bean properties as attributes
Hello, I'm trying to iterate through a collection of beans and call a custom
tag for each bean.
<logic:iterate id="dezeSchaal" name="<%=Risc.BEREKENING%>"
property="profielSchalen" />
<risc:staaf
schaal_nummer="<bean:write name="dezeSchaal"
property="schaalNummer"/>"
schaal_naam="<bean:write name="dezeSchaal"
property="schaalNaam"/>"
ruwe_score="<bean:write name="dezeSchaal"
property="ruweScore"/>"
gewogen_score="<bean:write name="dezeSchaal"
property="gewogenScore"/>"
max_geen_risico="<bean:write name="dezeSchaal"
property="maxGeenRisico"/>"
max_weinig_risico="<bean:write name="dezeSchaal"
property="maxWeinigRisico"/>"
max_veel_risico="<bean:write name="dezeSchaal"
property="maxVeelRisico"/>"
breedte_geen_risico="100"
breedte_weinig_risico="100" breedte_veel_risico="100" hoogte="21"
/>
</logic:iterate>
Now I get the error message:
org.apache.jasper.JasperException: /form/profiel.jsp(72,46) equal symbol
expected
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:83)
...
I think it has to do with the order of expanding of the tags, I hoped that
my custom tag would be called with the expanded bean:write values, but it
doesn't seem to be the case. I tried all varieties for the "fragment " and
"rtexprvalue" attributes for the tag. Maybe anyone has an idea how I can
best handle this? If anyone recommends a different approach, I'll be most
interested to hear about it.
Kind regards,
Jeroen
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org