Hi,
I am currently working on a small web app and this is the first time i am using struts. Here is what i am trying to achieve
A JSP page on form post, calls a struts action. Once this action completes it task, I need to return to the calling JSP and refresh it repeatedly to poll for the results of this task. Please note that all my action does is to execute a java Executor.
I have this configured by specifying the calling page in the result attribute of the action definition in the struts.xml. The problem is that when the action completes its execution and returns to jsp, the url after the return is
http://localhost:8080/mywebapp/dosomething.action. Now since i defined a meta tag for the page to refresh, the action is submitted everytime the page refreshes. I think its not refreshing the jsp, but its refreshing the url.
As a workaround, i have defined the result to a temporary page from which i am redirecting to this caller jsp. I am not liking this hack and would like to understand how should this problem be correctly implemented.
Really appriciate any help on this
Thanks in advance