Hello all ,
I have a static html page : decide.html"
which I invoke by the URL :
http://localhost:8080/happy/decide.html OR
http://localhost:8080/sad/decide.html In this static page ( decide.html ) I want to make a call to a servlet .
Here I am making use of code similar to this in
decide.html :
Now my control is transferred to the servlet and I can execute code
However the problem is : How do I pass the URL in the src attribute to the servlet
I would like to dynamically pass either :
http://localhost:8080/happy/decide.html OR
http://localhost:8080/sad/decide.html based on which I would like the servlet to behave differently
Any help is appreciated
Thanks ,
-satish