title: How can i get all browsers current tabs URL using java?
body: <p>I am working on a project where i need the browser URL of all tabs using JAVA or JSP. I have tried javascript code execute to java and got HELLO WORLD output but all i need is URL tabs of all browsers currently open.  </p>
  
  <p>I tried so far:</p>
  
  <pre><code>    String script = "function hello(name) { print('Hello, ' + name); }";
      ScriptEngineManager factory = new ScriptEngineManager();
      ScriptEngine engine = factory.getEngineByName("JavaScript");
      engine.eval(script);
      Invocable inv = (Invocable) engine;
      inv.invokeFunction("hello", "Scripting!!" );
  </code></pre>