-
Notifications
You must be signed in to change notification settings - Fork 815
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #611 from apache/WW-5241-exec-and-wait
[WW-5241] Fixes issue with includeParams=all when using exec & wait
- Loading branch information
Showing
11 changed files
with
268 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,46 @@ | ||
<!-- | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
--> | ||
<%@ taglib prefix="s" uri="/struts-tags" %> | ||
<html> | ||
<head> | ||
<title>Struts2 Showcase - Execute and Wait Examples - Complete</title> | ||
<title>Struts2 Showcase - Execute and Wait Examples - Complete</title> | ||
</head> | ||
|
||
<body> | ||
<div class="page-header"> | ||
<h1>The process is complete</h1> | ||
<h1>The process is complete</h1> | ||
</div> | ||
|
||
|
||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-12" style="text-align: center;"> | ||
<div class="row"> | ||
<div class="col-md-12" style="text-align: center;"> | ||
|
||
<b>We have processed your request.</b> | ||
<p/> | ||
Click here to <s:url var="back" value="/wait/index.html"/><s:a href="%{back}" cssClass="btn btn-link">return</s:a>. | ||
<div class="panel">We have processed your request.</div> | ||
|
||
</div> | ||
</div> | ||
<s:url var="back" value="/wait/index"/> | ||
Click here to <s:a href="%{back}" cssClass="btn btn-primary">return</s:a> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!-- | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
--> | ||
<%@ taglib prefix="s" uri="/struts-tags" %> | ||
<html> | ||
<head> | ||
<title>Struts2 Showcase - Execute and Wait Examples</title> | ||
</head> | ||
|
||
<body> | ||
<div class="page-header"> | ||
<h1>Execute and Wait Examples</h1> | ||
</div> | ||
|
||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-12" style="text-align: center;"> | ||
|
||
<p> | ||
These examples illustrate Struts build in support for execute and wait. | ||
<p/> | ||
<p> | ||
When you have a process that takes a long time your users can be impatient and starts to submit/click | ||
again. | ||
<br/> A good solution is to show the user a progress page (wait page) while the process takes it time. | ||
<p/> | ||
|
||
<br/> | ||
<br/><a href='<s:url value="example1"/>'>Example 1 (no delay)</a> | ||
<br/><a href='<s:url value="example2"/>'>Example 2 (with delay)</a> | ||
<br/><a href='<s:url value="example3"/>'>Example 3 (with longer check delay)</a> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,53 @@ | ||
<!-- | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
--> | ||
<%@ taglib prefix="s" uri="/struts-tags" %> | ||
<html> | ||
<head> | ||
<title>Struts2 Showcase - Execute and Wait Examples - Wait</title> | ||
<title>Struts2 Showcase - Execute and Wait Examples - Wait</title> | ||
<meta http-equiv="refresh" content="5;url=<s:url includeParams="all"/>"/> | ||
</head> | ||
|
||
<body> | ||
<div class="page-header"> | ||
<h1>Execute and Wait Examples - Wait</h1> | ||
<h1>Execute and Wait Examples - Wait</h1> | ||
</div> | ||
|
||
|
||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-12" style="text-align: center;"> | ||
|
||
<p class="well"> | ||
We are processing your request. Please wait. | ||
</p> | ||
|
||
<div class="progress progress-striped active"> | ||
<div class="bar" style="width: 50%;"></div> | ||
</div> | ||
|
||
<p/> | ||
You can click this link to <a href="<s:url includeParams="all"/>">refresh</a>. | ||
|
||
<b>We have processed your request.</b> | ||
<p/> | ||
Click here to <s:url var="back" value="/wait/index.html"/><s:a href="%{back}" cssClass="btn btn-link">return</s:a>. | ||
|
||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-12" style="text-align: center;"> | ||
|
||
<p class="well"> | ||
We are processing your request. Please wait. | ||
</p> | ||
|
||
<div class="progress progress-striped active"> | ||
<div class="bar progress-bar progress-bar-success" style="width: 50%;"></div> | ||
</div> | ||
|
||
<div class="panel"> | ||
You can click this link to <a href="<s:url includeParams="all"/>">refresh</a>. | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
<%@ taglib prefix="s" uri="/struts-tags" %> | ||
<html> | ||
<head> | ||
<meta http-equiv="refresh" content="5;url=<s:url includeParams="all"/>"/> | ||
</head> | ||
|
||
<body> | ||
<p style="border: 1px solid silver; padding: 5px; background: #ffd; text-align: center;"> | ||
We are processing your request. Please wait. | ||
</p> | ||
|
||
<p/> | ||
You can click this link to <a href="<s:url includeParams="all"/>">refresh</a>. | ||
|
||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.