Friday, October 28th, 2005

Swato: Opensource Ajaxian Java Web Framework

Category: Toolkit

<p>Zhijie Chen of Japan has created a new opensource framework for building Ajaxian web applications called Swato.

With the help of this framework, you just need to register your Java class (Model) at the server side (Spring), and do all of your View/Control at client side via JavaScript.

To build an application you:

  • Configure Swato
  • Build a POJO based service class
  • Register the class as a service
  • Use the service

Code Example Using the Service

var swatoEngine = new Swato.Engine('RPCServlet');

window.onload = function () {
	new Ajax.Updater('banner','banner.html');
	var languageCatcher= new Swato.Select('language_select');
	swatoEngine.callAndCatch(languageCatcher,'countryList',
					'getLanguageOptions',[]);
}

function changeLanguage(languageCode){
	var autoSuggestCatcher = new AutoSuggestControl('country');
	swatoEngine.callAndCatch(autoSuggestCatcher,'countryList',
				'getCountryList',[languageCode]);
}

Demos

Related Content:

  • BEA releases open-source WebLogic Java tool
    BEA Systems will release the source code for part of its WebLogic Workshop Java development environment, a move that it...
  • Apache open-source projects' background
    The Apache Software Foundation publishes a lot of useful open source tools. You may already know about Tomcat or Apache Server, but lesser known tools...
  • Are Java Web Applications Secure?
    One of the most extended belief about web applications is that most of them are insecure. This opinion is supported by statistics published by SANS...
  • Simpler Java
    In this article, we'll examine a few frameworks, and look at the basic principles that they use to embrace simplicity. We'll look at a lightweight...
  • Object and Apache team up on open-source J2EE
    ObjectWeb and the Apache Software Foundation, which each develop an open-source Java application server, have reached...

Posted by Dion Almaer at 3:09 am
1 Comment

+++--
3.4 rating from 14 votes

1 Comment »

Comments feed

Thank you for the post.

A little CORRECTION:
Zhijie Chen is a Chinese but no Japanese.

Comment by ZhijieChen — October 28, 2005

Leave a comment

You must be logged in to post a comment.