I have declared in my JSP a select tag with the following: onChange = "onChangeAction('<%=action%>', '<%=id%>', '<%=key%>', '<%=pageNum%>')" the problem is that the key includes a username so when the user's name is O'Reilly I get this: onChange = "onChangeAction('1', '20', '775954255_O'REILLY', '1')" ...naturally this breaks the entire page since the apostrophie hoses up that string. Anyone have an idea how to resolve this?
Try replacing it with the acsii code. Something like this - replace(/\'/g, "'"); then have your jsp or java convert it back.