jean-baptiste
03-08-2003, 04:44 PM
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="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
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="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