Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 with AJAX Call

 
Nagu Spartan
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • 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.

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • 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
  • 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
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic