|
|
Actions
The best way to introduce you to the framework is showing you some code. Here it is:
Action implementation with Input and Output
Action implementation with DI (no need to extend anything)
Action Implementation with method parameters (no need for Input or DI)
Action implementation with zero coupling (the web context is injected as Java Collections)
Configuration
Before you ask, of course you can use conventions! Mentawai has conventions for everything and also for the view:
http://www.mysite.com/HelloMentawai.sayHi.mtw => Forward to /HelloMentawai/sayHi.jsp
You can even create your own conventions (more info about this here)
But you also have to take control when you need it, and you will do this through Programmatic Configuration. The actions above could have been configured like that:
JSP Page
You can use JSTL, EL, Velocity ou anything you prefer. We recommend that you use the complete and powerful MentaTags:
More Quick Stuff
MyBooks Sample Application: http://recipes.mentaframework.org/posts/list/52.page
Official Recipes: http://recipes.mentaframework.org/
Quick Start: http://www.mentaframework.org/quick-start.jsp
|