call a servlet with javascript

wxdqz

New Member
Hi,
How to make to call a servlet java with Javascript with parameters.
For the moment, I call the servlet by submit a form HTML
For example:

function submit(){
document.endSession.submit();
}
with this form:
<form name="endSession" METHOD="POST" ACTION="./securite.SessionLogOut">
<input type="hidden" name ="user" value=http://www.webdeveloper.com/forum/archive/index.php/"noel"/>
</form>

But I would like to find a means of calling it without passing by a form HTML, because I often make this same call in several page HTML.
Thank you
 
Back
Top