Howdy, >Q1)May I know why I need to create war file?
Probably for practice: ask your book's author. >Q2)Will JSP page works in pure apache or IIS server ? No. >After that I decided to create index.html and hello.jsp file to a different >directory C:\Tomcat\Tomcat-4-1-18\webapps\hello\ But ....\hello is not in >the context path, that's why I go to http://server:port/hello/index.html, I >got 404. So I need to specify the context path in the Tomcat Web >Application Manager??? Simply create that context path under the webapps directory. You can also specify it in context.xml if you want, but that's not required. >I create a context.xml with the following content and save to hello folder. ><context path="/hello" docBase="C:\Tomcat\Tomcat-4-1-18\webapps\hello" >debug="0" reloadable="true" crossContext="true"> </context> Call it hello.xml not context.xml. >PATH = /hello >Config URL= file:/C:\Tomcat\Tomcat-4-1-18\webapps\hello\context.xml >WAR URL= file:/C:\Tomcat\Tomcat-4-1-18\webapps\hello\hello.war I'm not sure this is a valid URL. Use \\ for backslash or alternatively forward slashes throughout the whole URL. Start with file:// not just a single slash. See the manager app how-to for URL details. Yoav Shapira 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
