解决方法
开始显然要研究
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 …