struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lalchandra Rampersaud" <>
Subject Re: Display tag and AJAX
Date Sat, 07 Jun 2008 22:49:05 GMT
in reality ajaxanywhere does not need additional javascript funcions (by default comes packaged
with aa.js).  the function that is usually called is  which invokes an action.  the action
is the one which allows the user to select the zone that is to be updated and also sends the

attached is an example of an action which uses ajaxanywhere.

import org.ajaxanywhere.AAUtils;

public ActionForward first(ActionMapping mapping, ActionForm form,
   HttpServletRequest request, HttpServletResponse response)
  if (AAUtils.isAjaxRequest(request)) {

            AAUtils.addZonesToRefresh(request, "projectsList");
      PaginatorHandler paginator = new PaginatorHandler(request, "projWorkerPaginator");
      request.setAttribute("tabIndex", 4);

    String url = "/pagesJSP/companyProjectBoss/Project/registerProjectBody.jsp";
    ServletContext sc = (ServletContext) getServlet().getServletContext();
    RequestDispatcher rd = sc.getRequestDispatcher(url);
    rd.forward(request, response);

    return null;

Lalchandra Rampersaud
Carpe diem

----- Original Message ----- 
From: "Arunkumar Balasubramanian" <>
To: "Struts Users Mailing List" <>
Sent: Thursday, June 05, 2008 9:52 PM
Subject: RE: Display tag and AJAX

Thanks for your reply.
Can you give the reference of javascript functions used for the display:table used with in
AjaxAnywhere tag? If you have an working example, it would be great, if you could provide
the reference with other classes involved with display:table.
View raw message