• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Refresh Page

 
Scott Selikoff
author
Saloon Keeper
Posts: 4031
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the best way to do an HTML equivalent of a meta-refresh in struts? For example, to make a page to automatically refresh every 10 seconds.

One (good?) method would be just to use an HTML meta tag. The only difficulty is the URL value. Currently, when I construct a link, I use struts tags to fully resolve it. For example, in an html:form tag, the action value is converted from "/buildWidget" to "/myApp/buildWidget". Is there a struts tag I can use to insert the fully resolved URL inside the meta tag?

Or is there a better way to do page refreshes in struts all together?
 
Scott Selikoff
author
Saloon Keeper
Posts: 4031
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind about the inserting the URL part, I forgot I could use a c:url to insert the URL.

Back to my original question though, what is the best way for a page refresh in struts? Just an HTML meta tag?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd suggest using the JSTL <c:url> tag, which also prepends the context to the url.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic