java - How to doget() or dopost() without submitting form,from an anchor -
i know asked previewsly didnt find solution yet. case want make (do or get) request servlet anchor in jsp file , not form.is possible?
when click anchor link, you're sending request, doget()
gets invoked.
you cannot post request clicking such link. html anchors not designed way.
you can use ajax, if don't want submit form
or atleast can trigger form submission
onclick
of it.
$("link").click(function(){ $("#form").submit(); });
Comments
Post a Comment