You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Shapira, Yoav" <Yo...@mpi.com> on 2002/10/25 20:11:03 UTC
RE: If you know........................ Thanks !
Hi,
>Tomcat 4.1/webapps/servlet1/web-inf/classes/st/Servlet1.class
>
>How call in a brobser my class?
http://yourhost:yourport/servlet1/servlet/st/Servlet1
I suggest you give your web application a name other than "servlet1"
because that name might confuse you. A name like "myApp" is better.
The web.xml file goes in the
tomcat/webapps/myApp/WEB-INF directory.
You can add the following to your web.xml:
<servlet>
<servlet-name>MyServletName</servlet-name>
<servlet-class>st.Servlet1</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyServletName</servlet-name>
<url-pattern>/MyServlet</url-pattern>
</servlet-mapping>
Then your servlet will be accessible from
http://yourhost:yourport/MyApp/MyServlet
>Where put Servlet1.shtml?
in tomcat/webapps/MyApp. (or subdirectories of it, but not under
WEB-INF).
>I send Servlet1.java and web.xml to you see.
I didn't see any attachments.
>I'm new in Tomcat !!!!!!
Welcome ;)
>Thank for all and excuse my English...I from Argentina.
I'm a Boca Juniors fan ;)
Yoav Shapira
Millennium ChemInformatics
RE RE: If you know........................ Thanks !
Posted by Correo <he...@ar.inter.net>.
I follow your tutorial bat can't start my servlet !!!
Error 404: ...... !!!%#$@!*7^
I change the name directory Servlet1 to myApp and modifi web.xml
what happen ?
Visit www.bocajuniors.com.ar
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>