To get a servlet to work directly, use JkMount commands like these in
Apache:
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /HelloWorldServlet ajp13 <===== Add this type of line
The first passes all *.JSP pages to Tomcat, the second passes all URLs
starting with /servlet/ to Tomcat, and the last passes all URLs for a
page called HelloWorldServlet to Tomcat. A line of the last kind for
each servlet would be needed.
Then in the appropriate context's web.xml in TOMCAT add these lines:
<servlet-mapping>
<servlet-name>HelloWorldServlet</servlet-name>
<url-pattern>/HelloWorldServlet</url-pattern>
</servlet-mapping>
I have the servlets working, but can not get the JSPs to compile
automatically. I can compile manually. Any ideas?
(Windows 2000)
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
