I am new to java. I have a task to complete.
I have two Html files  
page1.html
<html>
    <head>
    </head>
    <body>
        <a onclick="send('hello');"><li>Hello</li></a>
        <script>
            var ws;
            ws = new WebSocket("ws://localhost:8080/Test/actions");
            function send(text){
                ws.send(text);
            }    
        </script>
    </body>
</html>
I want to show this text in other html file (Page2.html), when it is clicked in Page1.html. And I have to implement it using Java WebSocket Only.
 
     
    