Hello Sidaty,
Once your servlets are loaded using your engine (maybe servletrunner), it
keeps waiting for a request from the browser. Only when your browser
invokes the servlet, as Karl has shown, the servlet starts running. You do
not have to embed anything in your html page like applets. Rather you can
type the url as shown below or on Click of a button from one HTML form, you
can invoke the servlet and submit parameters to it.
Just use the submit button of html and in the <FORM> tag, use method as
either post or get and
action="http://Yourserver:port/servlets/Your-servlet"
Automatically your form parameters will be submitted to the servlet.
Hope this explains the process to you.
Jyoti
-----Original Message-----
From: Karl Roberts [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, September 09, 1999 10:26 PM
To: [EMAIL PROTECTED]
Subject: Re: How Can I run Servlet on the server side throug browser
Hi,
Without meaning to sound vague,
set up your web-server / servlet-engine to load your servlet (usually by
setting the default servlet directory to be the directory where you keep
your servlets ;- you will need to refer to the instructions specific for
your Web server / servlet engine)
make sure that the alias Yourserver:port/servlets is handled by a
servlet invoker (usually a default setting of your servlet engine)
then simply point your browser at your servlet
e.g. http://Yourserver:port/servlets/Your-servlet
P.S. you can find a step-by-step example in the java tutorial
(admittedly using the servlet runner not a web server)
http://java.sun.com/docs/books/tutorial/servlets/index.html
Karl
sidaty wrote:
> Hi all , How can i launch execution of my servlet program on a server
> side trough use of browser on my wokstationDo i put it in an HTML file
> like what we do for applet if so how to set it up . Thanks in advance
___________________________________________________________________________
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