Hi, >webapps > --- AppDir ----- JSP file > --- Web-inf ----- web.xml file > -- classes ----- My Servlet Class files > >http://localhost:port/AppDir/<Servletclass>
In the above configuration, if you have the invoker servlet mapping enabled in $CATALINA_HOME/conf/web.xml: http://localhost:port/AppDir/servlet/<ServletClass> will invoke your servlet http://localhost:port/AppDir/your.jsp will invoke your JSP file If you add the following to your web.xml: <servlet> <servlet-name>myservlet</servlet-name> <servlet-class>your.servlet.class</servlet-class> </servlet> <servlet-mapping> <servlet-name>myservlet</servlet-name> <url-pattern>/MyServlet</url-pattern> </servlet-mapping> Then your servlet will be accessible (without needing the invoker servlet) at: http://localhost:port/AppDir/MyServlet Yoav Shapira Millennium ChemInformatics
This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
-- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>