• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Struts 2 with AJAX Call

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From one action, I call more then one Ajax call, if I Refresh the Page, then it will redirect to the Action call.

 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure what the question is.
 
Nagu Spartan
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Struts 2, I call one Action. In the Page, I call another Ajax. Now the page is replaced by Div. If I press the Refresh(F5), then the Page is redirect to the Action success mentioned in struts.xml.
My Question is, whether I press F5, after that also i need to stay the current page.



David Newton wrote:I'm not sure what the question is.

 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you refresh you're taken to the original page: if you need to re-call the Ajax call to replace page contents you'll have to add some sort of state mechanism to handle the need to re-call the Ajax.
 
Nagu Spartan
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you please provide some example for the same.

David Newton wrote:When you refresh you're taken to the original page: if you need to re-call the Ajax call to replace page contents you'll have to add some sort of state mechanism to handle the need to re-call the Ajax.

 
What's wrong? Where are you going? Stop! Read this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic