html:img, onclick and bean:message

2004-11-11 Thread Cook, Lori A
Can anyone help with this? I'm using Struts and am having difficulties getting the result of a bean:message into an 'onclick' of an html:img tag. Here's the markup in the jsp for img: img src=normal.gif border=0 alt= onclick=confirm('bean:message key=delete/');/ The (correct) result is: img

Re: html:img, onclick and bean:message

2004-11-11 Thread Ben Anderson
alright, I flubbed you up yesterday. That's what I get for trying to give advice even though I haven't used the framework much recently. But this one I'll get right... You can't define an xml element as an attribute of another element. This is an xml rule - nothing specific to struts or

RE: html:img, onclick and bean:message

2004-11-11 Thread Cook, Lori A
Sigh. I was afraid that would be the case. Following your example another way is: script language=JavaScript type=text/javascript var deleteMsg = 'bean:message key=delete.msg /'; /script html:img src=normal.gif border=0 alt= onclick=confirm(deleteMsg);/ I am unfamiliar with c:set and