net.sourceforge.ajaxtags.servlets
Class AjaxActionHelper

java.lang.Object
  extended by net.sourceforge.ajaxtags.servlets.AjaxActionHelper

public final class AjaxActionHelper
extends Object

This is a helper class to avoid caching problems and duplicated code. Later we will write an action class to make the use in struts much easier.


Nested Class Summary
static class AjaxActionHelper.HTMLAjaxHeader
          Some HTML-Header which can be easily enabled.
 
Method Summary
static String invoke(BaseAjaxXmlAction action, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Invoke the AJAX action and setup the request and response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

invoke

public static String invoke(BaseAjaxXmlAction action,
                            javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
                     throws javax.servlet.ServletException
Invoke the AJAX action and setup the request and response.

Parameters:
action - the BaseAjaxXmlAction implementation
request - the request
response - the response
Returns:
the XML content from action
Throws:
javax.servlet.ServletException - for any errors


Copyright © 2005-2010 The Ajaxtags Team. All Rights Reserved.