Thanks for your feedback Ben.
I want to explain my problem little bit more.
As you have done in the example it is working fine and it is also working fine
on my system but my problem is same but its formate is little bit different.
My actual code is :
<c
aram name="genericName" value="${StoneForm.genericName}"/>
${fn:replace(genericName, "'", "\\'")}
Here you can clearly see the in the value field of the param tag i do not have
the simple value as you are giving in your example i have the variables as you can see. Now when i try like the above code it gives java script err.
(on the onclick() function as i m sending the params with scripts and it contains apostrophe....)
And if i give replace function inside value field it gives syntax err in jsp.
Please try to do like this.