-
RedirectingActionForward Or a Thread Or .... (5 messages)
- Posted by: Varun Paprunia
- Posted on: November 11 2008 09:37 EST
I am displaying some records on a which are fetched from database. This page is refreshed every 2 minutes as the client wants the latest data to be displayed. On the same page, an Export button is displayed to the user. Clicking on this button will fetch and export all the records to an excel. Problem is that if the fetching and exporting activity take more than 2 minutes then this activity is aborted and the page refreshes. Please give me how to go with it. We are using struts. ThanksThreaded Messages (5)
- Re: RedirectingActionForward Or a Thread Or .... by J Dev on November 12 2008 07:13 EST
- Re: RedirectingActionForward Or a Thread Or .... by Varun Paprunia on November 12 2008 08:31 EST
-
Re: RedirectingActionForward Or a Thread Or .... by Varun Paprunia on November 14 2008 08:53 EST
-
Re: RedirectingActionForward Or a Thread Or .... by Krishna Pothula on November 20 2008 11:56 EST
- Re: RedirectingActionForward Or a Thread Or .... by Varun Paprunia on December 04 2008 08:27 EST
-
Re: RedirectingActionForward Or a Thread Or .... by Krishna Pothula on November 20 2008 11:56 EST
-
Re: RedirectingActionForward Or a Thread Or .... by Varun Paprunia on November 14 2008 08:53 EST
- Re: RedirectingActionForward Or a Thread Or .... by Varun Paprunia on November 12 2008 08:31 EST
-
Re: RedirectingActionForward Or a Thread Or ....[ Go to top ]
- Posted by: J Dev
- Posted on: November 12 2008 07:13 EST
- in response to Varun Paprunia
-
Re: RedirectingActionForward Or a Thread Or ....[ Go to top ]
- Posted by: Varun Paprunia
- Posted on: November 12 2008 08:31 EST
- in response to J Dev
I am using meta tag. -
Re: RedirectingActionForward Or a Thread Or ....[ Go to top ]
- Posted by: Varun Paprunia
- Posted on: November 14 2008 08:53 EST
- in response to Varun Paprunia
Any suggestions.. -
Re: RedirectingActionForward Or a Thread Or ....[ Go to top ]
- Posted by: Krishna Pothula
- Posted on: November 20 2008 23:56 EST
- in response to Varun Paprunia
Problem is simple.. use AJAX to fetch records. And dont use the META refresh. Use Javascript to refresh every two minutes. You can use settimeout inside a function that fetches the data. This way after you fetch the data it will wait for next 2 minutes for next refresh. Using Ajax will improve the performance but still if you want to improve it further then Code your actions and JSP in such a way that they return XML instead of HTML. Use an XSLT transformation on the screen to display the result. -
Re: RedirectingActionForward Or a Thread Or ....[ Go to top ]
- Posted by: Varun Paprunia
- Posted on: December 04 2008 08:27 EST
- in response to Krishna Pothula
Hello Krishna, Thank you very very much...