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 and search for the "examples" entry and copy this for your folder.
you can start your servlets with url"http://localhost:8081/project/servlet/yourservlet";.
for your pleasure
bernd


kitty winslet schrieb:

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 <[EMAIL PROTECTED]> 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.





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to