SHARE
TWEET

Untitled

a guest Jun 19th, 2019 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. resp.setContentType("text/javascript");
  2. resp.getWriter().println(script);
  3.      
  4. <html>
  5. <head>
  6. <script type='text/javascript' src='URL_TO_YOUR_SERVLET'></script>
  7. </head>
  8. </html>
  9.      
  10. <html>
  11. <body>
  12.  <script type='text/javascript'>
  13.      <!-- write your generated JS here -->
  14.  </script>
  15. </body>
  16. </html>
  17.      
  18. <%@ page language="java" contentType="text/javascript; charset=UTF-8" pageEncoding="UTF-8"%>
  19. alert('Pure JavaScript right here!');
  20.      
  21. contentType="text/javascript; charset=UTF-8"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top