One way to do this will be:
<html>
<head>
<script language="javascript">
function invokeServlet(servletName) {
document.myform.action.value = servletName;
document.myform.submit();
}
</script>
</head>
<body>
<form name="myform" action="" method="post">
<input type=submit value="Submit"
onClick="javascript:invokeServlet('myServlet');">
</form>
<!-- Any other HTML stuff can go here -->
</body>
</html>
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Lalith Jayaweera
Sent: Thursday, September 23, 1999 10:04 AM
To: [EMAIL PROTECTED]
Subject: SERVLET JAVASCRIPT ?
Hi,
Can we call servlets from JAVA SCRIPTS(client end), depending on the
client's events.
thanks
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html