Kiran,

Can u let us know how did u called servlets thro javascript it would be
helpful for us in the future.

Thanks
Srini

-----Original Message-----
From: Kiran Badhe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 20, 2000 9:13 AM
To: [EMAIL PROTECTED]
Subject: Re: Calling Servlets from JAVASCRIPTS


Hi Imran,

Thanks. I can successfully call the servlet from Javascript.
May I know how to pass parameters to the servlets that is called from
JavaScript so that I can receive them in the servlet to make use of them?

Thanks.
Kiran

>From: Imran Baig <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Calling Servlets from JAVASCRIPTS
>Date: Tue, 20 Jun 2000 12:38:28 +0500
>
>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

________________________________________________________________________
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

___________________________________________________________________________
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

Reply via email to