Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Whenever the wait result is returned, the action that is currently running in the background will be placed on top of the stack. This allow you to display progress data, such as a count, in the wait page. By making the wait page automatically reload the request to the action (which will be short-circuited by the interceptor), you can give the appearance of an automatic progress meter.

To set the Thread priority, add the parameter threadPriority (defaults to Thread.NORM_PRIORITY):

Code Block
xml
xml
titlexwork.xml

<interceptor name="execAndWait" class="com.opensymphony.webwork.interceptor.ExecuteAndWaitInterceptor"/>

<interceptor-stack name="defaultStack">
    ...
    <interceptor-ref name="execAndWait">
        <param name="threadPriority">10</param>
    </interceptor-ref>
</interceptor-stack>

The thread will receive the name of the action with 'BackgroundThread' appended.