You can't call serlvets from javascript at server side. One of the two options
you have on client sied is
1. Submit a form using javascript e.g document.formname.submit()
but action property of that form should point to a servlet.
2. By using document.location = name of servlet
one thing you can do is to
Manish Bhatnagar <[EMAIL PROTECTED]> on 06/20/2000 01:03:39 PM
Please respond to "A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Imran Baig/CresSoft)
Subject: Re: Calling Servlets from JAVASCRIPTS
You can do that using Server-Side Includes (SSI)... i.e. by using
<servlet></servlet>tags... as follows
<script language="JavaScript">
<!--
<servlet code=nameOfServlet>
</servlet>
//-->
</script>
I hope that's what you wanted to know!
--Manish--
Kiran Badhe wrote:
> Hi,
>
> I am quite new to javascripts and I want to know how to call the servlets
> from javascripts along with the parameters.
>
> Thanks.
> Kiran
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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
--
---------------------------------Live-Your-Dream--------
Manish Bhatnagar
Software Engineer
Accord Software & Systems Pvt. Ltd.
37, Krishna Reddy Colony
Domlur Layout
Bangalore - 560 071
India
Telephone: +91-80-5560105 x 211
Fax: +91-80-5562723
Obstacles are things a person sees when he takes his eyes off his goal.
-E. Joseph Cossman
---------------------------------Live-Your-Dream--------
___________________________________________________________________________
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