This tutorial works through a simple guest book example using JSP templates. The Resin JavaScript overview describes Resin's capabilities from the perspective of a server-side JavaScript user. It explains how Resin can upgrade to more powerful application servers and how Resin improves response times by avoiding duplicate effort. JavaScript to Bytecodes Resin tm compiles JavaScript to Java bytecodes and uses the Java virtual machine to execute its code. The primary benefit of direct compilation is speed.
Interpreters are slow.
Interpreting JavaScript in Java would be deadly slow. The compilation to Java bytecodes allows the generated code to be compiled by any JIT compiler. Inc. All rights reserved.