Hi,
I wrote a HelloWorld servlet and I placed the class file in
%tomcat_home%\webapps\MyPlace\WEB-INF\classes folder and I wrote a web.xml
file with the following content and kept in
%tomcat_home%\webapps\MyPlace\WEB-INF folder.
Now when I start tomcat and enter http://localhost:8080/MyPlace/HelloWorld ,
I'm getting the output from the servlet... But when I start Apache after
tomcat and enter http://localhost/MyPlace/HelloWorld , I'm "page cannot be
found" error page... The mapping from Apache to tomcat has been done and I
am able to view the html and jsp pages in the second way... What else I need
to do for getting the result from the servlet in the second way...?
web.xml content :-
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>HelloWorld</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>/CLC/HelloWorld</url-pattern>
</servlet-mapping>
</web-app>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html