Once you have downloaded Whizu and you have added Whizu to your web application, you are now ready to write your first jQuery Mobile application in Java with Whizu.
Let's not waste time and just have a look at the source code.
import org.whizu.annotation.App; import org.whizu.jquery.mobile.JQueryMobile; import org.whizu.jquery.mobile.Page; @App("/whizu/helloworld") public class HelloWorld implements JQueryMobile { @Override public void onLoad(Page page) { page.header("Hello world!"); } }
You're done! You just wrote your first jQuery Mobile application in Java.