不知我理解的对不对。应该这样。
将note.xml,note.xsl放在c:\tomcat\webapps\root下,文件内容没有改变。
(不要放在webapps根目录下,tomcat找不到的).
浏览器输入c:\tomcat\webapps\root\note.xml,回车正确显示。
浏览器输入http://127.0.0.1:8080/note.xml,回车正确显示。
如果不能正确显示,你把root下的index.html改成index1.html,再把note.xml改成index.html,在浏览器中http://127.0.0.1:8080/index.html也能显示出Jackie Come back soon Mother is here,come back soon and take a fish with you! Lucy 。