Hey
I have a program in retrieving data from a HTML page with Javascript using
Java. Lets say I have the structure of
C:/index.html
C:/js/script.js
The index.html contains:
The script.js contains:
How can from a Java
servlet access a and b from the script.js file (which contains a class named Script) and also access the function add which returns that value?
(Note that the code I just wrote might be incorrect as I wrote it quickly just to demostrate whats my problem)
This is driving me crazy as I have tried with Map and retrieve it thru request but nothing. There isnt any way I see right now.
Thanks.