<html:link action="/delete" onclick = '<%="returnconfirmationMessage(jsMessage)" %>'
Ok , I think I made a mistake here. This should actually be <html:link action="/delete" onclick = '<%="return confirmationMessage(" + jsMessage + ")" %>' Did you try it this way? -- Puneet