JavaScript EE, Part 1, Run JavaScript files on the server side

Learn how to use the javax.script API in Ajax and Java EE applications

From the developerWorks archives

Andrei Cioroianu

Date archived: April 22, 2019 | First published: December 16, 2008

Combine JavaScript with Java™ code on the server to get the freedom to use the same JavaScript routines on both servers and clients. In addition, the techniques presented throughout this series will allow you to maintain a single code base for both Ajax and non-Ajax clients. Because much of the server-side code would still be written in the Java language, you'll find it necessary to expose the Java Platform, Enterprise Edition (Java EE) features to JavaScript. In this series, learn how to run JavaScript files on the server side, call remote JavaScript functions with Ajax, and use the Java Scripting API with the JavaServer Pages (JSP) technology.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some content, steps, or illustrations may have changed.

Zone=Web development, Java development
ArticleTitle=JavaScript EE, Part 1: Run JavaScript files on the server side