I think you need to add a context for it first. You can use the admin interface to do it or make use of tomcat's autodeploy feature from a .war file. You could also manually enter the context on your own in server.xml . There are plenty of examples in there.

Cora wrote:
I use tomcat 4.1.8 and create a "project\ehrs" directory under "webapps\".
Save "helloworld.html" to "..\project\ehrs\", and make the form action url
to "../servlet/ServletHelloWorld",
also put the servlet to "..\project\WEB-INF\classes\ServletHelloWorld.class"

Moreover, I also un-remark the following at "..\Program Files\Apache
Group\Tomcat 4.1\conf\web.xml"

  <!-- The mapping for the invoker servlet -->
    <servlet-mapping>
        <servlet-name>invoker</servlet-name>
        <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>

But I got the following error message when I run the servlet:


HTTP Status 404 - /project/servlet/ServletHelloWorld
type: Status report
message: /project/servlets/ServletHelloWorld
description: The requested resource (/project/servlet/ServletHelloWorld)

is not available.


What else config I need to modify / add? Anyone can teach me?
Thanks at advance!
Cora


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





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



Reply via email to