org.mentawai.ajaxtag
Class AjaxtagConsequence

java.lang.Object
  extended by org.mentawai.ajaxtag.AjaxtagConsequence
All Implemented Interfaces:
Consequence

public class AjaxtagConsequence
extends Object
implements Consequence

A Consequence for using Ajaxtag taglib (ajaxtags.sf.net). This consequence must applied to a instance of BaseAjaxtagAction. The BaseAjaxtagAction contains the response to the ajaxtag requisition and as all information required to render that response.

Since:
1.9
Author:
Marvin Froeder (m@rvin.info)

Constructor Summary
AjaxtagConsequence()
           
 
Method Summary
 void execute(Action a, String result, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           Prints in the request's output the ajaxtag response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxtagConsequence

public AjaxtagConsequence()
Method Detail

execute

public void execute(Action a,
                    String result,
                    javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws ConsequenceException

Prints in the request's output the ajaxtag response.

Also send a non-200 HTTP response as an error responses when any exception occurer on the renderization proccess. happened.

Specified by:
execute in interface Consequence
Parameters:
a - The action that generated this consequence.
result - The result generated by the action.
req - The servlet request of the action.
res - The servlet response of the action.
Throws:
ConsequenceException


Copyright © 2013. All Rights Reserved.