To run the javascript server, a javascript mechanism is required, which can be integrated. Most of these โembeddedโ engines provide an API that allows you to interact between JavaScript executable code and your own objects / methods. For example, you may have javascript code connected to execute functions written in Java or C #, or you can expand the script symbol table to enable access to objects other than javascript on your system.
I would take a look at some of these engines, I suggest that Rhino may be best for you, since it is written in Java. Their tutorials describe how to implement Rhino in a Java environment.
Change in response to the second question.
I'm not sure what you mean by content generated by the javascript library. However, you point to ExtJS, what will the HTML content that I believe in mean? It is important to understand the difference between the DOM (which Javascript can read and modify, but is not a "part" of Javascript as such) and Javascript is a language. If you need an idea of โโthe server side of the DOM, which is different from the story, if you need the Javascript language, then the above options will help you.
source share