Hi
Consider a servelet that returns a html page with embedded javascript:


<head>
...

<script src="./js/foo/jfoo.js?seq=2" type="text/javascript"></script>
...
</head>
...

<body onload="javascript:FooOnLoad();" onunload="javascript:FooOnUnload();">
...

</body>

</html>

_________________________-


jf.js

...

function fInit()
{
if (jf == null)
{
jfElem = document.getElementById(F_ID);
if (jfpElem != null) {
try {
jf = new Jf(jfElem);
jfoo.JSDraw(null, RECENTER_ZOOM, 0);
} catch (e) {
alert("Error [jfInit]:\n" + e);
}
} else {
alert("Error [jfInit]:\nDiv '" + F_ID + "' not found");
}
}
};

and the javascript creates an instance of Jf. Jf is declared ina Java file...

Can this be possible?
Can javascript call java (non-applet) code?
If nor, which technologies could be used to make this?

Thanks a lot

Alex