[Logo] Mentawai Recipes
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Moderation Log] Moderation Log   [Register] Register / 
[Login] Login 
Choosing consequences for handling different outputs (JSP, Ajax, Binary, etc.)  XML
Forum Index » Official Recipes
Author Message
saoj



Joined: 10/01/2008 08:20:15
Messages: 39
Offline

Mentawai has the concept of Consequence, also known as Resolver in other frameworks like Spring MVC.

Basically, depending on the RESULT of an Action you can trigger the appropriate CONSEQUENCE.

The most common consequences are FORWARD to a JSP or REDIRECT to an URL:

Now we talk about consequences for other types of output:

1) AJAX consequence generating JSON:

Action:

Configuration:

2) Streaming binary (images, pdf or anything):

Action:

Configuration:



 
Forum Index » Official Recipes
Go to:   
Powered by JForum 2.1.8 © JForum Team