title: How can i execute javascript of jsp throught java connection url?
body: <p>Hi i have written my javascript code in my jsp page and i am calling my jsp through java  connection url,it is executing properly but skipping my javascript function which i have called at the time of  page load.
  I am not able to understand why it is not executing my javascript.</p>
  
  <pre><code>try {
      URL myURL = new URL("http:localhost:8080/Approval.jsp?empCode=123&amp;compCode=A");
      URLConnection myURLConnection = myURL.openConnection();
      myURLConnection.connect();
  } 
  catch (IOException e) {   
  
  }
  </code></pre>
  
  <p>Is there any of calling JavaScript directly through connection url.Please suggest?</p>