Thanks Eric. But I still can't fix my problem. This is the code I have inside my
jsp.
I am building a url and using a 'href' to redirect to a
servlet which calls a method.
I want to replace this above line with a
in such a way that I want to skip the call to the servlet and use the js function to determine the click and be able to call my java method directly.