public class AjaxtagErrorConsequence extends Object implements Consequence
A Consequence for using Ajaxtag taglib (ajaxtags.sf.net). This consequence must be used as the way to send errors back to the client.
| Constructor and Description |
|---|
AjaxtagErrorConsequence() |
public void execute(Action a, String result, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws ConsequenceException
Send a non-200 HTTP response as an error responses when any problem happened.
That response can be catch at JSP on ajaxtag errorFunction
execute in interface Consequencea - 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.ConsequenceExceptionCopyright © 2015. All Rights Reserved.