passing string variable to java script

how to pass a string variable from jsp to javascript... i was able to pass int, double.. but cant pass string.... can any one plz help me...<select name="x" onchange="return fill(<%=a%>);">this is the code which i have written...
[262 byte] By [ms_chaitraa] at [2007-11-26 15:36:53]
# 1
Try adding a single quote:<select name="x" onchange="return fill('<%=a%>');">
skp71a at 2007-7-8 21:54:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...