This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts - Auto Refresh Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts - Auto Refresh" Watch "Struts - Auto Refresh" New topic
Author

Struts - Auto Refresh

Timmy Gupta
Greenhorn

Joined: Dec 06, 2008
Posts: 6
I want my JSP page to auto refresh at specific intervals and I am using the http-meta tag for this. But this fires action again.

Please tell me how to avoid firing of form action on auto refresh?


Think before you speak as you might hurt or break someone's heart.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

That what refreshing the page does--it re-requests the page. What would a refresh that doesn't actually refresh be for?

If you're asking about how to set up a timer-based Ajax refresh to, say, refresh a single page section, then unless you're using the Struts 2 AJAX tags, this isn't a Struts question.

If you're using the S2 AJAX tags then things like the <s iv.../> tag have this functionality trivially exposed, just read the tag documentation.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts - Auto Refresh
 
Similar Threads
How to make the subsequent requests to have the parameter values?
Auto Refresh For Table Cells
Struts 2 with AJAX Call
how to reload a jsp page ?
How to control Auto refresh by checkbox