RE: Iterate and onClick problem for html:submit

2003-12-12 Thread Ben Anderson
This is because you can't mix the value of an attribute of a custom tag with both string literal and run time expressions. Instead of this: html:submit onclick=this.form.hiddenId.value='%=(String) theCode %'; value=Edit / something like this should work: c_rt:set var=theCode value=%=(String)

RE: Iterate and onClick problem for html:submit

2003-12-12 Thread Wendy Smoak
From: [EMAIL PROTECTED] html:submit onclick=this.form.hiddenId.value='%=(String) theCode %'; value=Edit / If Struts-EL is an option, I think it would look like this: html-el:submit property=someProp onclick=document.forms[0].hiddenId.value=${theCode}; / -- Wendy Smoak