Q:

How to redirect to another action in Struts in given time?

For example, once an action has been called I want it to redirect to another action in 5 seconds. Is it possible?
    <action name="proceedupdateaccount" class="accountAction" method="updateAccount">
        <result name="success" type="redirectAction">update-message</result>
        <result name="input">/accountupdateform.jsp</result>
    </action>

    <action name="update-message">
        <result>/message.jsp</result>
        <!-- in 5 seconds this action should redirect to logout action -->
    </action>

    <action name="logout">
        <result type="redirect">/j_spring_security_logout</result>
    </action>

A:

You can simply redirect them from the first action to another action using the <meta http-equiv="refresh" > code on the first action's result, like this:
In the message.jsp:
<meta http-equiv="refresh" content="5;url=logout">

