Java call javascript in servlet

Hi,

I am outputing HTML and Javascript using a servlet to display reports. Is it possible to embed java withing the javascript inside a servlet?

I know you can do it on a JSP page like this:

<script language="javascript">

function test()

{

var javascript_variable = "";

<%String java_variable = "";%>

}

</script>

[382 byte] By [morningJavaa] at [2007-11-27 11:43:21]
# 1

I hope out.println() will help you..

my_foruma at 2007-7-29 17:49:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...