Thanks for the reply Devaka,
My code now looks like this below but it still isnt working. am I still missing something?
<%
String variable = "December 25, 2010";
request.setAttribute("variable", variable);
%>
<SCRIPT LANGUAGE="JAVASCRIPT">
var myVar = <%= request.getAttribute("variable") %>;
document.write(myVar);
</SCRIPT>
I have also tried
<SCRIPT LANGUAGE="JAVASCRIPT">
var myVar = <%= request.getAttribute("variable") %>
document.write(myVar);
</SCRIPT>
Thanks