struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kushan Jayathilake <kusha...@gmail.com>
Subject Re: Page refresh after AJAX Call
Date Thu, 01 Jul 2010 13:43:08 GMT
Got it working... :)

Thank you very much Jyothi,

On Thu, Jul 1, 2010 at 2:57 PM, Jyothi Rajesh <jyorajesh@gmail.com> wrote:

> You will need to have a dedicated action to generate the data for the grid.
> This action will have to be inlcluded in the main page. And since this
> action forwards to the same grid JSP, whether you include it in the main
> page or through AJAX, it will give the same effect.
> On Thu, Jul 1, 2010 at 1:27 PM, Kushan Jayathilake <kushanxp@gmail.com
> >wrote:
>
> > Thanks for replying Jyothi,
> >
> > I have some questions,
> >
> > if we call that separate JSP file where the <s:iterator> resides, then
> how
> > can i show it in the main page, if AJAX request call loads the grid page,
> > then how can i move back to main page, because the grid should appear on
> > the
> > main page.
> >
> >
> >
> > On Thu, Jul 1, 2010 at 11:49 AM, Jyothi Rajesh <jyorajesh@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > Here is how you can do it:
> > >
> > > 1) Have an independent JSP which will just include the grid using the
> > > s:iterator tag.
> > > 2) The forward/result of the servlet/action given in the AJAX request
> > > should
> > > be this JSP.
> > > 3) In the AJAX callback function, the above JSP will give the HTML to
> be
> > > rendered.
> > > 4) Use javascript innerHTML function to set the resulting HTML in a
> > parent
> > > div in the callback AJAX function.
> > >
> > > Thanks and Regards,
> > > Jyothi
> > > On Thu, Jul 1, 2010 at 9:58 AM, Kushan Jayathilake <kushanxp@gmail.com
> > > >wrote:
> > >
> > > > Hi Guys,
> > > >
> > > >
> > > > I have implemented basic AJAX functionality without incorporating
> third
> > > > party frameworks,  and its working fine, AJAX functionality
> > > > is doing the sorting thing of a grid, i have implemented the grid
> using
> > > > <s:iterator>
> > > >
> > > > What i want to do is, refresh the entire grid, after the AJAX Call
> > > happens,
> > > > so <s:iterator> will show the sorted data in the grid.
> > > >
> > > > Anyone suggest me how i can do this,
> > > >
> > > > --
> > > > Regards
> > > > Kushan Jayathilake
> > > >
> > >
> >
> >
> >
> > --
> > Regards
> > Kushan Jayathilake
> >
>



-- 
Regards
Kushan Jayathilake

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message