you can invoke servlet from Javascript tag.
the src attribute of <script> element is always used with "*.js" file.
Generally speaking,it has nothing to do with JavaScript(of course, it
depneds on hoe you want to do it).
if you want to invoke an servlet , you can call it from a link or
from a "form".
e.g:
<a href="/servlet/Hello"> hello</>
> -----Original Message-----
> From: EXT Sandeep Malhotra [mailto:[EMAIL PROTECTED]]
> Sent: 18. April 2000 04:04 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Invoke a servlet in html
>
>
> Do you want to trigger the servlet as soon as this html page
> is loaded...is
> that what you mean?!
>
>
> ----- Original Message -----
> From: Jinfeng Ni <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 17, 2000 10:53 PM
> Subject: Invoke a servlet in html
>
>
> > hi,
> > I meet a problem. I want to run a servlet when user open
> > one html. I edit the html file like this:
> >
> > <html>
> > <head>
> > <title>Untitled Document</title>
> > <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
> > </head>
> > <body bgcolor="#FFFFFF">
> > <script language="JavaScript" src="/servlet/Hello">
> > </script>
> > </body>
> > </html>
> >
> > ==========================================
> > But it failed. I was told that there is a syntax error!
> >
> > How to implent this request?
> >
> > Any help will be appreciate!
> >
> > Jeff Ni
> >
> >
> > _____________________________________________
> > 263������--�й��˵����ϼ� http://www.263.net
> > ���ʡ���ѡ�����ʡ�����ѣ��충�������ӿ��http://www.soim.com
> > �����ţ��㣬��������Ʒ��http://www.thepoints.com
> >
> >
> ______________________________________________________________
> _____________
> > 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
>
___________________________________________________________________________
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