U need to have a compiled class file under the http://localhost/servlets
directory.

Have a servlet property file and it should read as follows
servlet.name.code=<classfile name>
where name is the alias ur going to give for the class file.

Supposing if u have one.class ur servletproperty file will read as
follows:

servlet.two.code=one.  In the browser u will type as the following

http://localhost:8080/servlets/two [ *PLEASE NOTE THAT THE ALIAS NAME NOT
THE ORIGINAL CLASS FILE NAME* ].

Then go to the c:\jdsk2.0\bin directory and run the servletrunner exe with
the following command.

servletrunner -dc:\localhost\servlets
-sc:\localhost\servlets\servlet.properties, if u run the servletrunner
without these parameters then it will look for the files under
c:\jdsk2.0\examples rather than c:\localhost.  The -d option is to specify
the directory of the servlets and the -s property is for setting up the
servlet.properties files.

Thats it go to the browser type http://localhost:8080/servlets/<aliasname>
u will be getting the output of the class file name.  By default the
servlet port is 8080, i am telling abt the serlvetrunner utility, i dont
know how to configure a servlet engine on any webserver, might be anyone
in this list shall shed some light on that aspect indetail.

According to the specification u need to restart the servletrunner utility
for the updated version of ur class .  DO REMEMBER TO MAKE UR CLASS AS
PUBLIC OR ELSE U SHALL BE GETTING AN URL not found error (404).

Get back to us if u still need any information in this regard

Thanks
Srini

On Mon, 19 Jul 1999, [iso-8859-1] Mikael Andr�asson wrote:

> If anyone could take the time and explain what i need and how I should
> use what i need to compile a some code i have to a Servlet. Its just a
> simple bit of code but i dont really know how I should do this task.
> I'm going to use this Servlet on a Domino-server if that is of any
> importans.
>
> So, if anyone have a few minutes over for just typing down a few rows
> to put me on the right track I would be very glad.
>
> /Mikael Andr�asson (Sweden)
>

___________________________________________________________________________
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