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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -