blob: 43c7edd1def58c0671e404621a58a157560a7c6f [file] [log] [blame]
<%--
Copyright 2004 The Apache Software Foundation
Licensed 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.
--%>
<%@ page import="java.util.Map"%>
<%@ page import="org.apache.pluto.testsuite.TestConfig"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<portlet:defineObjects/>
<center>
<table>
<tr>
<td align="center" nowrap="true">
<%-- Run Previous Test ============================================ --%>
<portlet:actionURL secure="<%= renderRequest.isSecure() ? "True" : "False" %>"
var="url">
<portlet:param name="nextTestId"
value="<%= renderRequest.getParameter("testId") %>"/>
<c:forEach var="param" items="${prevTest.actionParameters}">
<%
TestConfig.Parameter parameter = (TestConfig.Parameter) pageContext.findAttribute("param");
String paramName = parameter.getName();
String paramValue = parameter.getValue();
%>
<portlet:param name="<%= paramName %>" value="<%= paramValue %>"/>
</c:forEach>
</portlet:actionURL>
<a href="<%= url %>">
<img src="<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/images/previous.png") %>"
border="0">
</a>
<%-- Return to Introduction ======================================= --%>
<portlet:actionURL secure="<%= renderRequest.isSecure() ? "True" : "False" %>"
var="url">
<portlet:param name="testId" value="<%= null %>"/>
</portlet:actionURL>
<a href="<%= url %>">
<img src="<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/images/return_index.png") %>"
border="0">
</a>
<%-- Run Next Test ================================================ --%>
<portlet:actionURL secure="<%= renderRequest.isSecure() ? "True" : "False" %>"
var="url">
<portlet:param name="previousTestId"
value="<%= renderRequest.getParameter("testId") %>"/>
<c:forEach var="param" items="${nextTest.actionParameters}">
<%
TestConfig.Parameter parameter = (TestConfig.Parameter) pageContext.findAttribute("param");
String paramName = parameter.getName();
String paramValue = parameter.getValue();
%>
<portlet:param name="<%= paramName %>" value="<%= paramValue %>"/>
</c:forEach>
</portlet:actionURL>
<a href="<%= url %>">
<img src="<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/images/next.png") %>"
border="0">
</a>
</td>
</tr>
</table>
</center>