JavaScript EE, Part 3: Use Java scripting API with JSP

See the original posting on IBM developerWorks – Java

In the previous two parts of this series, you've seen how to run JavaScript
files on the server and how to call remote JavaScript functions with Ajax. This
article explains how to use server-side JavaScript code with the JavaServer Pages
(JSP) technology and how to build Asynchronous JavaScript and XML (Ajax) user
interfaces that remain functional when JavaScript is disabled in the Web browser.
The sample code consists of a small JSP tag library that you can reuse in your own
applications as well as a dynamic Web form, which is generated with a piece of JavaScript code that can be executed on the Web server or in the Web browser.