You cannot have custom tags within custom tags. As you say you want a <bean:write> tag within an <html:button> tag, then this will not work as they are both custom tags. You could get around this by using <bean:define> and then using the value of this in your html:button tag like so:
<bean:define id="a" name="myForm" value="myValue"/> <html:button value="<%= (String) a %>"/> or indeed you could do something like this: <html:button><bean:write.../></html:button> if you want to use the <bean:write> for the name of the button. I'm not certain as to how you are trying to use <bean:write./> in your <html:button> tag as I dont see an example of it in your code, unless I'm being completely dopey... :) cheers claire w ----- Original Message ----- From: "Marco Mistroni" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Monday, January 26, 2004 12:19 PM Subject: problem with nested tags > Hi all, > I have problem in invoking a javascript for following code... > > <nested:iterate id="element" name="batchTaskForm" property="tasks"> > <tr class="workscreen"> > <td align="right" class="workscreen"> > <bean:write name="element" property="value.type"/> > </td> > <td align="left" class="workscreen"> > > > <nested:equal name="element" property="active" > value="true">Active since <bean:write name="element" > property="value.startDate"/> > > <html:button property="buttonSelected" > value="start" title="Start" /> // I should associate this button with a > javascript method //that accepts as input > parameter the type property //mentioned > above > </html:form> > </nested:equal> > > <nested:equal name="element" property="active" > value="false">Currently Inactive <html:button property="buttonSelected" > title="Start" value="start"/></nested:equal> > </td> > </tr> > </nested:iterate> > > > For some reason, the bean:write tag does not work inside an html:button > ... > > Anyone can help? > > Thanx in advance and regards > marco > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

