The web.xml file in the WEB-INF directory should have a tags:
<servlet>
<servlet-name>SendMailServlet</servlet-name>
<servlet-class>SendMailServlet</servlet-class>
</servlet>
and
<servlet-mapping>
<servlet-name>SendMailServlet</servlet-name>
<url-pattern>/SendMailServlet</url-pattern>
</servlet-mapping>which tell tomcat where to find the servlet when you request http://localhost:8888/examples/SendMailServlet
At 07:07 AM 09/07/2003 -0400, you wrote:
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.
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:8888/examples/SendMailServlet
I took a look on the JSP (sendmail.jsp) content and found that it is the following statement make the mail works. May I know what is SendMailServlet? and How to create it???
<form method="POST" action="\examples\SendMailServlet">
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Robert Wray, Engineer Forestry Products, Alberta Research Council Phone: (780) 450-5045 Fax: (780) 450-5397 [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
