<!DOCTYPE html>
<%--
   Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
--%>

<%-- Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.--%>
<%
 String address = request.getRequestURL().toString();
 if (address.endsWith(".jsp")) {
    address = address.substring(0, address.lastIndexOf("/wss-oauth-client"));
 }
 if (!address.endsWith("/")) {
    address += "/";
 }
 address += "wss-oauth-service/jersey/helloworld/sayHello";
%>
<html>
    <head>
        <meta http-equiv="Content-Type"
              content="text/html; charset=windows-1252"/>
        <title>Test web services call using wss-oauth</title>
    </head>
    <body>
        <form name="oauth-test" method="post" action="helloworldclientservlet">
            <table>
                <tr>
                    <th>Address</th>
                    <td>
                        <input name="address" type="text" size="110"
                               value="<%=address%>"/>
                    </td>
                </tr>
                 
                <tr>
                    <th>===&gt;Test</th>
                    <td>
                        <input name="submit" type="submit" size="20"
                               value="Click to test"/>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>