江汉大学学报(自然科学版) ›› 2012, Vol. 40 ›› Issue (5): 56-60.

• 计算机科学 • 上一篇    下一篇

基于Rhino引擎的服务器端JavaScript脚本容器设计与实现

李轶   

  1. 江汉大学数学与计算机科学学院,湖北武汉430056
  • 收稿日期:2012-03-22 出版日期:2012-10-20 发布日期:2013-11-07
  • 作者简介:李轶(1976—),男,实验师,硕士,研究方向:网络管理

html.Design and Realization of Server-side JavaScript ContainerBased on Rhino Engine

LI Yi   

  1. School of Mathematic and Computer Science,Jianghan University,Wuhan 430056,Hubei,China
  • Received:2012-03-22 Online:2012-10-20 Published:2013-11-07

摘要: 在JavaScript语言重新受到重视的今天,其运行环境也正逐渐从传统的Web客户端向服务器端延伸。作为服务器端JavaScript引擎的典型代表,Rhino引擎具有广泛的平台支持和应用基础。通过将Rhino引擎置于一个标准的Javaservlet中,便可构造出一个支持JavaScript的服务端脚本容器。借助Rhino引擎,Web开发者不仅能在脚本容器内部访问Java对象,而且还获得了整个Java平台的丰富类库及应用框架的支持。与此同时,服务器端JavaScript还统一了Web开发的前、后台语言,降低了开发难度并提高了开发效率。

关键词: JavaScript引擎, 服务页面, Javaservlet

Abstract: Nowadays JavaScript is re-valued, and its running environment is shifting gradually from traditional web client-side to server-side. As a typical representative of server-side JavaScript engine, Rhino has a broad platform support and appling foundation. By placing Rhino engine into a standard Java servlet, a server-side JavaScript container can be constructed. With the help of Rhino engine, developers can not only access Java objects inside JavaScript container, but also gain full support of Java platform. Meanwhile, server-side JavaScript also unified development language used in both front and back end. Thus, it reduces the difficulty of web development and improves efficiency.

Key words: JavaScript engine, server page, Java servlet

中图分类号: