Has anyone run into this, and if so do you have a work around? I have a Struts bean:write tag inside a JavaScript onClick command like so:
<td><input type="image" src="images/EditIcon.gif" alt="Add/Edit External Note" onClick="showExtNoteModal('<nested:write property="pendingExtNote"></nested:write>', '<%= rowIndex.toString() %>','editExternalNote')"/></td> The problem is the dastardly single quote embedded in the nested:write property, for example (Chris's Test Note). It works fine as long as there is no JavaScript, but with the JavaScript wrapping it you get script errors. It seems struts is nice enough to replace the single quote with the hex code equivalent of <td><input type="image" src="images/EditIcon.gif" alt="Add/Edit Internal Note" onClick="showIntNoteModal('Chris's Other Test', '0','editInternalNote')"/></td> I made a routine to add the escape character (\') if I detect the ('), but struts is still nice enough to recognize this and replace it with the hex code again, removing my escape character. I also tried to add multiple slashes before the ' which gets past the JavaScript error but, it shows up on the page with \\' I guess struts doesn't recognize the \\' as a special character. Thanks, Scott Mulligan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]