Re: how to create servlet?

2003-07-10 Thread bernd pier
you can also create a own webapp-folder for your servelts, lets say named project. there must be a structure like this: /project/WEB-INF/classes /project/WEB-INF/lib and a web.xml file under WEB-INF. then you can add this folder to the server.xml file located in tomcat../conf/.look in this file

how to create servlet?

2003-07-09 Thread kitty winslet
Hi.. I used the JSP example in my newly setup Tomcat server to send mail. http://localhost:8080/examples/jsp/mail/sendmail.jsp and after I type in info, the mail sent successfully and it go to the following page. http://localhost:/examples/SendMailServlet I took a look on the JSP

Re: how to create servlet?

2003-07-09 Thread Tim Funk
To create/use servlets, you just need to folow Sun's Servlet Specification. http://java.sun.com/webservices/docs/1.1/tutorial/doc/ http://servlets.com/index.tea http://moreservlets.com/ -Tim kitty winslet wrote: Hi.. I used the JSP example in my newly setup Tomcat server to send mail.

Re: how to create servlet?

2003-07-09 Thread Robert Wray
The SendMailServlet code should be located in tomcat_installation_directory\webapps\examples\WEB-INF\classes\SendMailServlet.java The web.xml file in the WEB-INF directory should have a tags: servlet servlet-nameSendMailServlet/servlet-name

Re: how to create servlet?

2003-07-09 Thread kitty winslet
In WEB-INF\classes\ I always find 2 kind of file SendMailServlet.java and SendMailServlet.class, what is the difference btw *.java and *.class ? In the servlet mapping fields, why it only shows the name of the servlet, not the full path to where it located for example

Re: how to create servlet?

2003-07-09 Thread Kwok Peng Tuck
.java is the source file, the one you use to compose your program. It is like any other text file, you can use any text editor to create a .java source file. The .class file is a compiled version of the .java file, ready for execution by the servlet container. For your second question, you