I am creating one project in which I am making call to a JavaScript function which resides in index.jsp from my java class ( .java file). As in this context we shouldnt write <script>
tag in our index.jsp, what should I do if I want to make use of some dependent .js file like stomp.js source file in my index.jsp file??
Asked
Active
Viewed 210 times
0

Sai
- 31
- 2
- 5
-
How do you mean with "we shouldnt write ` – Jasper de Vries Sep 26 '14 at 08:20
-
means if we want to call a JavaScript function from our java class, we make of `ScriptEngineManager` and run that function. In these case we define only function body in the JavaScript file. – Sai Sep 26 '14 at 09:18
-
You could write a Javascript function which adds the ` – Jasper de Vries Sep 26 '14 at 09:22
-
http://stackoverflow.com/questions/18784920/how-to-add-dom-element-script-to-head-section – Jasper de Vries Sep 26 '14 at 09:34