Coding in Grails, thinking in Java

Coding in Grails, thinking in Java   多好的题目啊!忍不住转发一下,大家共享之!
----转自:http://inhouse32.appspot.com/index.html
    一个不错的grails+GAE+jQuery+Ajax网站,本身就是在GAE上的应用。极力推荐大家过去看看!原文如下:很简单的,就不翻译了。


Coding in Grails, thinking in Java
August 12th, 2009

By default we create a domain class and generate controller and view for that domain class. Run the app and everything works fine.

Create another controller and access that domain object will encounter java.lang.NullPointerException due to domain object is null.

Simply, because I forgot to import that domain class into this controller.

This reminds me if I don't know how to do things in Grails, think, how I do it in Java.



    正如所言,Grails编码,用Java思考,面向对象思想是最重要的。



你可能感兴趣的:(java,jquery,Ajax,grails,GAE)