saoj
Joined: 10/01/2008 08:20:15
Messages: 39
Offline
|
The Mentawai support for POJO actions, along with its powerful filters, allows you to code a web application totally decoupled from the Mentawai framework.
For a complete example, feel free to download both versions of the MyBooks application: (use the mybooks.sql file included in the zip to create your mybooks mysql database)
MyBooks-ACTION.zip - Action and Business Model are separated. Action is coupled to Mentawai. Business Model is not coupled.
MyBooks-POJO.zip - Action and Business Model are together in a single class totally decoupled from the Mentawai framework.
Take a look below:
ACTION version:
MyBooks-ACTION ApplicationManager.java
MyBooks-ACTION BookAction.java
MyBooks-ACTION BookService.java
Now the POJO version:
MyBooks-POJO ApplicationManager.java
MyBooks-POJO BookService.java
|