I looked at the code and seems really old. It looks like a servlet that
executes like an external CGI program, rather than in a servlet container.

Here's a list of tutorials and resources that Nayak Savitha sent to list a
while back:

http://www.webreview.com/pub/2000/01/07/style/nov99.html
The big tutorial "Servlet Essentials":
www.novocode.com/doc/servlet-essentials/
Other tutorials you can find at www.servlets.com
Java Server Pages (JSP)
http://java.sun.com/products/jsp/
http://java.sun.com/products/jsp/docs.html
http://www.sunworld.com/sunworldonline/swol-08-1998/swol-08-asp.html
http://www.javaworld.com/javaworld/jw-03-2000/jw-03-ssj-jsp.html
http://www.gamelan.com/journal/techworkshop/092199_jsp1.html
http://www.gamelan.com/journal/techworkshop/092899_jsp2.html
http://www7.software.ibm.com/vad.nsf/data/document2389?OpenDocument
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/
http://www.browsebooks.com/Fields/
http://java.sun.com/products/jsp/jsp-asp.html
http://java.sun.com/products/jsp/technical.html
http://java.sun.com/products/jsp/faq.html
http://www.serverpages.com/Java_Server_Pages/
http://www.jsptutorial.com/
http://www.servletcentral.com/1998-12/jsp.dchtml
http://csclub2.stthomas.edu:8080/mfcatlin/tutorial/files/read.html
http://csclub2.stthomas.edu:8080/mfcatlin/tutorial/jdbc/index.html
http://java.sun.com/products/jsp/html/jspbasics.fm3.html
http://www.interpasnet.com/JSS/
http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro/
http://www.javaworld.com/javaworld/jw-03-2000/jw-0331-ssj-forms.html
http://www.javaworld.com/javaworld/jw-03-2000/jw-0331-ssj-jspxml.html
http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html
http://www.taglib.com/
http://jakarta.apache.org/taglibs/
http://jsptags.com/
http://www.devx.com/upload/free/features/javapro/2000/04apr00/te0004/te0004
-1.asp

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



                -----Original Message-----
                From:   Scott Evans [mailto:[EMAIL PROTECTED]]
                Sent:   Tuesday, June 06, 2000 2:32 PM
                To:     [EMAIL PROTECTED]
                Subject:        Re: tomcat server dies easy?

                Couldn't it be that the server is killed because you call
System.exit(1) in
                the catch statement?

                I believe that is intended for stand-alone applications and
should never be
                found in a servlet or jsp.

                                -----Original Message-----
                                From:   Alan Lun
[mailto:[EMAIL PROTECTED]]
                                Sent:   Tuesday, June 06, 2000 12:16 PM
                                To:     [EMAIL PROTECTED]
                                Subject:        tomcat server dies easy?

                                When a servlet tries to read the file that
doesn't exist,
                the tomcat
                                server is killed. I used a code from


"http://triton.towson.edu/~schmitt/server/servlet/guestbook6.java"

                                try {
                                     BufferedReader in = new
BufferedReader(new
                InputStreamReader(
                                     new
                FileInputStream("/usr/faculty/schmitt/.mysql-init")));
                                    } catch (Exception e) {
                                       out.println("guestbook6: cannot read
.mysql-init");
                                       System.exit(1);
                                    }

                                Any ideas?

                                Thanks

                                Alan

                                [EMAIL PROTECTED]



===========================================================================
                                To unsubscribe: mailto [EMAIL PROTECTED]
with body:
                "signoff JSP-INTEREST".
                                Some relevant FAQs on JSP/Servlets can be
found at:

                                 http://java.sun.com/products/jsp/faq.html
                                 http://www.esperanto.org.nz/jsp/jspfaq.html

http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


===========================================================================
                To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
                Some relevant FAQs on JSP/Servlets can be found at:

                 http://java.sun.com/products/jsp/faq.html
                 http://www.esperanto.org.nz/jsp/jspfaq.html
                 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
                 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to