i used these code but nothing seen on document
<%String movie_name ="Matrix"; %>
<script type="text/javascript">
var movie_name="";
movie_name= <%= movie_name%>;
document.write(movie_name);
</script>
so anyone can help me to convert java string to javascript string ?
This might do it (missing quotes):
Also looking at your sample code you can replace it completely with:
Finally consider using jstl.