Can someone please tell me what is the error in my code? Without using the c:out
I can display the output.
<a class="popUp" href="javascript:showMessage(<c:out value='${myHistory.userId}' />, <c:out value='${myHistory.userName}' />);">Click Here</a>
When I click the link Click Here
nothing is happening. Please tell me how to use C:Out
or fn:escapeXml
in my code. Can also suggest me if there are other alternatives.
I have referred these links to write my code.