-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You should never call System.exit() in a servlet, nor should there be
a reason to want to do it.

lance

> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's
> Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Dreamer
> Sent: Tuesday, May 25, 1999 10:23 AM
> To: [EMAIL PROTECTED]
> Subject: Re: how to start
>
>
> Dear All
>
> I have the following questions:
>
> 1.
>
> Do I always have to use the url: http://localhost:port/servlet/
> to point to my servlet directory.  I am using jsdk2.0.  My
> question is would it be possible for me to use something else to
> point to my servlet directory, instead of /servlet. For example,
> http://localhost:port/Any-Name/
>
> 2.
>
> In my servlet application, whenever i have system.exit(0),
> it also makes the servlet server exit.  I am not sure
> why is that or am i doing something wrong, or i should never
> include any system.exit in my servlet application, for it
> might cause the servlet server to exit as well.
>
> Thanks in advance
>
> -kit
>
>
> On Tue, 25 May 1999, maurice munoz wrote:
>
> > 1. Goto dos prompt and start the servletrunner,etc
> >
> > 2. Once you start the servletrunner, you have to open you
> browser and type
> > in example: http://localhost:8080/servlet/nameofyourservlet
> >
> > 3. But make sure you place your class files in (directory
> of where u loaded
> > "jsdk2.0") /jsdk2.0/examples/ ,so It can exe.
> >
> >
> > ----- Original Message -----
> > From: Yaochun Zhang <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, May 24, 1999 11:08 PM
> > Subject: how to start
> >
> >
> > > I just start learning Servlet. I have downloaded JDK-1.2
> and JSDK-2.1 into
> > > my PC(running on Win95). I copied several examples from
> the book Java
> > > Servlet Programming(Jason Hunter) I just bought. But I
> don't know how to
> > > see the results. I tried the "servletrunner" on dos
> prompt, nothing
> > > happens. Could someone tell me how to do it or which site
> has info about
> > > it? Many thanks.
> > >
> > > A newbie.
> > >
> > > On Mon, 24 May 1999, Hsu, Jennifer wrote:
> > >
> > > > I had a simple servlet program compile under jdk1.2 rc1 and
jsdk
> > 2.0.Then I
> > > > run from HTML. It run ok under DOS servletrunner with
localhost.
> > > >
> > > > Now I download the jdk1.2.1 and recompile. Th servlet
> program compiles
> > fine.
> > > > But when I run the program from HTML with jsdk2.0 and
> localhost  I got
> > > > ClassFormatError.
> > > >
> > > > Same error if I use jdk1.1.8 with jsdk2.0. Anyone has
> same error? How
> > you
> > > > solve it problem. Please let me know.
> > > >
> > > >
> > > > Thank in advance
> > > >
> > > >
> > > > java.lang.ClassFormatError
> > > >         at
> sun.servlet.ServletLoader.loadClass(ServletLoader.java:230)
> > > >         at
> sun.servlet.ServletLoader.loadServlet(ServletLoader.java:91)
> > > >         at
> sun.servlet.http.HttpServer.getServlet(HttpServer.java:326)
> > > >         at
> > > >
>
sun.servlet.http.HttpServerHandler.sendResponse(HttpServerHandler.jav
> > > > a:152)
> > > >         at
> sun.servlet.http.HttpServerHandler.handleConnection(Compiled
> > > > Code)
> > > >         at sun.servlet.http.HttpServerHandler.run(Compiled
Code)
> > > >         at java.lang.Thread.run(Thread.java:466)
> > > >
> > > >
> > >
> > >
> >
> ______________________________________________________________
> _____________
> > > 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
>
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2

iQA/AwUBN0r1pidpJaJi99tJEQK3dQCg1K25KchvatRrD+tBvHTy+/zcxN8AoIrJ
WYKLUpFbcF+lpjp9ydJVINVr
=Z20/
-----END PGP SIGNATURE-----

___________________________________________________________________________
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