2009-09-11

Express-Wind: a brand new MVC framework

Express-Wind is a brand new MVC framework that is completely different with tradictional Java MVC frameworks such as Struts.

Express-Wind supports friendly URL like '/blog/post/2009-09-09.html', and simple URL mapping mechanism like '/blog/post/$1.html'.

See example:



import org.expressme.wind.Mapping;

public class MyPage {

@Mapping("/hello")
public String hello() {
return "<h1>Hello, world</h1>";
}

@Mapping("/hello/$1")
public String hello(String name) {
return "<h1>Hello, " + name + "</h1>";
}
}


Please visit http://code.google.com/p/express-me/wiki/ExpressWind for more docs and download.

2009-02-19

How to use OpenID to sign on with Google account

Recently Google announced its support for OpenID, called "Federated Login", to let any site enable their users to sign on by their Google accounts, without registrations.

This is really a good news, and for Java developers they can write some code to make the 3rd-part site to connect to Google. There are already lots of libaries that can be used in J2EE. However, after I do some evaluation of these libaries, I do not find a suitable libary. The well-known "OpenID4Java", is too large (46MB!), with dependencies on many other libaries. So I decided to write a small, but very lightweight libary to support OpenID 2.0 spec, called "JOpenID".

It is very small, with only 48KB including both source & binary. You can download from http://code.google.com/p/jopenid/downloads/list.


It has been fully tested based on Google accounts. However, I think it also can support Yahoo! OpenID, but with little information provided by Yahoo! I do not test yet.

2006-08-26

Design Patterns

Recently I put one of my projects "jexi" on google code as an open source project:


http://code.google.com/p/jexieditor/


This is a WYSIWYG editor based on JavaSE & SWT.


It comes from the 'Lexi' example when I study GoF's "Design Patterns". DP provides a C++ example but not a complete project. I think Java is a good OOP language and suitable for learning design patterns, and hopes this "jexi" project may help you learn design patterns. Here is a snapshot:




It is not complete yet and only basic functions such as edit, insert pictures, format, select can be use. You can check out the source and make any changes.

I really like google code. Simple but powerful! The only one drawback is that HTML descriptions cannot be used as project description on home page.

2006-08-24

A j2me client for Google Talk

Recently I finished my GTMobile (Google Talk Mobile for Java phones) and put the whole project on google code:


Now it is passed on SUN WTK 2.5 but I don't have a powerful java phone that support CLDC1.1 & MIDP 2.0, :(

Here are some snapshots:














If you want to try this application on your mobile phones, download these 2 files:

Move from MSN space

Recently I can access google blog now, good news! and I moved my blog from MSN space. I don't like MSN space, it's too much complex and I just want a simple blog to post & share. It is said that I can put my google adsence code on blog and I will try it later.