tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kitty winslet <tomcat...@yahoo.com.au>
Subject Re: how to create servlet?
Date Thu, 10 Jul 2003 03:23:35 GMT

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 c:\tomcat\webapps\examples\WEB-INF\classes\SendMailServlet?

Robert Wray <wray@arc.ab.ca> wrote:

The SendMailServlet code should be located in tomcat_installation_directory\webapps\examples\WEB-INF\classes\SendMailServlet.javaThe
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/SendMailServletAt
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>




---------------------------------
Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message