net.spy.jwebkit.struts
Class AjaxAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by net.spy.jwebkit.struts.JWebAction
          extended by net.spy.jwebkit.struts.AjaxAction

public abstract class AjaxAction
extends JWebAction

Base action for AJAX actions.


Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
AjaxAction()
           
 
Method Summary
protected abstract  net.spy.xml.SAXAble getResults(org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request)
          Write the results for this call to the given ContentHandler.
protected  org.apache.struts.action.ActionForward spyExecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Execute this action.
 
Methods inherited from class net.spy.jwebkit.struts.JWebAction
execute, getLogger, spyCancel
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxAction

public AjaxAction()
Method Detail

spyExecute

protected final org.apache.struts.action.ActionForward spyExecute(org.apache.struts.action.ActionMapping mapping,
                                                                  org.apache.struts.action.ActionForm form,
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  javax.servlet.http.HttpServletResponse response)
                                                           throws java.lang.Exception
Description copied from class: JWebAction
Execute this action.

Specified by:
spyExecute in class JWebAction
Parameters:
mapping - the mapping
form - the form
request - the request
response - the response
Returns:
the ``next-hop'' forward
Throws:
java.lang.Exception - if there's a problem with the action

getResults

protected abstract net.spy.xml.SAXAble getResults(org.apache.struts.action.ActionForm form,
                                                  javax.servlet.http.HttpServletRequest request)
                                           throws java.lang.Exception
Write the results for this call to the given ContentHandler.

Parameters:
form - the web form instance
request - the servlet request
Returns:
the SAXAble that will be encoded into the success results
Throws:
java.lang.Exception - exceptions will be transferred back to the client


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.