struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lalchandra Rampersaud" <lrampers...@ceis.cujae.edu.cu>
Subject Re: Display tag and AJAX
Date Sat, 07 Jun 2008 22:54:50 GMT
sorry, i forgot to put the funcion.  it is ajaxAnywhere.submitAJAX(parameter=value)

------------
Carpe diem


----- Original Message ----- 
From: "Lalchandra Rampersaud" <lrampersaud@ceis.cujae.edu.cu>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Saturday, June 07, 2008 3:49 PM
Subject: Re: Display tag and AJAX


> hi
> 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 data.
> 
> 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");
>      paginator.GetPage(PaginatorHandler.typeOfPage.first);
>      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;
> }
> 
> 
> Saludos
> Lalchandra Rampersaud
> ------------
> Carpe diem
> 
> 
> ----- Original Message ----- 
> From: "Arunkumar Balasubramanian" <arun-82@hotmail.com>
> To: "Struts Users Mailing List" <user@struts.apache.org>
> 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.
> 
>
Mime
View raw message