Ravenous是一个基于Java的Web服务器。Ravenous是一个比较特殊的服务器,没有实现任何JEE标准。它的主要目的是为开发人员提供一种简单、独特、易于掌握的方式来开发稳定、高性能的web站点。
官方网站:http://ravenous.solidosystems.com/
下载地址:http://ravenous.solidosystems.com/
Ravenous is a Java based webserver which does not in any way attempt to implement any parts of the Java Enterprise Edition standard. Instead it aims to provide you, the developer, with a simple easy to grasp way of developing solid high performance web sites in Java.
Lets have a quick look at a tiny hello world example. First a controller called test.rvc is placed in a folder called test. Page requests to the url /test/ will automatically call the method called index.
Controller filename : /test/test.rvc
public void index(){
java.util.Date dt=new java.util.Date(); ENV.put("date",dt.toString());
}
After running this method, Ravenous will look for a view template in the same folder, with the name of the method.
Template filename : /test/index.rvp
<h1>Hello World!</h1>
<p>The time and date is <?rav
print(ENV.get("date"));
?></p>
Thats it... take a look at the result here. |