如何在服务器端Java代码运行JavaScript代码?

前端之家收集整理的这篇文章主要介绍了如何在服务器端Java代码运行JavaScript代码?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我想在服务器端运行 JavaScript代码.我想在JavaScript代码中操作JavaScript返回的结果.怎么办?

解决方法

开始显然要研究 rhino.

我想你会发现这3个链接非常有用

> JavaScript EE,Part 1: Run JavaScript files on the server side
> JavaScript EE,Part 2: Call remote JavaScript functions with Ajax
> JavaScript EE,Part 3: Use Java scripting API with JSP

你也可以看看helma

Helma is a server-side Javascript environment and web application framework for fast and efficient scripting and serving of your websites and Internet applications.

Helma is written in Java and employs Javascript for its server-side scripting environment …

原文链接:https://www.f2er.com/java/125078.html

猜你在找的Java相关文章