tiles and waitAndExec cannot work together
------------------------------------------
Key: WW-2375
URL: https://issues.apache.org/struts/browse/WW-2375
Project: Struts 2
Issue Type: Bug
Components: Plugin - Tiles
Affects Versions: 2.0.11
Environment: Resin 3.0.23, JDK 1.6.02, Windows XP/Linux
Reporter: Christopher Cheng
I have a problem of having tiles and waitAndExec working together.
WaitAndExec and the tag <s:url> cannot generate the action request correctly
on the wait page.
On the wait page "wait.jsp" <s:url> uses the tiles template file
"http://localhost:8080/jsp/layout/layout.jsp" as the URL
instead of http://localhost:8080/action1.action
search.jsp:
<s:form action="action1!list" method="post" onsubmit="return checkForm();"
theme="simple">
.............
</s:form>
struts.xml:
<action name="action1" class="com.mycompany.Action1" method="input">
<interceptor-ref name="completeStack"/>
<interceptor-ref name="execAndWait">
<param name="delay">10</param>
<param name="delaySleepInterval">50</param>
</interceptor-ref>
<result name="success" type="tiles">success</result>
<result name="wait" type="tiles">wait</result>
</action>
tiles.xml:
<definition name="layout" template="/jsp/layout/layout.jsp">
<put-attribute name="header" value="/jsp/layout/header.jsp"/>
<put-attribute name="menu" value="/jsp/layout/menu.jsp"/>
<put-attribute name="body" value="/jsp/layout/body.jsp"/>
<put-attribute name="footer" value="/jsp/layout/footer.jsp"/>
</definition>
<definition name="wait" extends="layout">
<put-attribute name="body" value="/jsp/wait.jsp"/>
</definition>
wait.jsp:
<%@ taglib uri="/struts-tags" prefix="s" %>
<html>
<head>
<title>Please wait</title>
<meta http-equiv="refresh" content="5;url=<s:url includeParams="all"
/>"/>
</head>
<body>
Please wait while we process your request.<br/>
Click <a href="<s:url includeParams="all" />">Here</a> if this page does
not reload automatically.
</body>
</html>
</pre>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.