On an interesting note, we had to do alot of this as well where the
variable came from another tag(s).
I stumbled across this: I found it a bit cleaner
<bean:define id="onchangeCall" >function('1','2','<nested:write property
="someProp"/>')</bean:define>
<nested:text onchange="<%=onchangeCall%>" />
*** Though I could not do the same thing with <nested:define
[EMAIL PROTECTED] on 11/26/2002 06:30:11 AM
Please respond to "Struts Users Mailing List"
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: Nested Iterate Tag and indexId problem
I figured out the problem.
This will not work even though the rtexprvalue is set to true in the tld.
<nested:text onchange="function('1','2','<%=variable%>')" />
However, this will work...
<% String onchangeCall = "function('1','2','" + variable + "');" %>
<nested:text onchange=<%=onchangeCall%> />
I can't use a scriptlet for just a portion of the assignment. It has to
be all or nothing. In the first version it just treats everything as a
string.
In the second version it evaluates the runtime expression.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>