1, modify the XML code in%tomcat_home%/conf/server.xml, add the Red section (Configure virtual directory)
Unpackwars= "true" autodeploy= "true"
Xmlvalidation= "false" Xmlnamespaceaware= "false" >
<context path= "/tang" docbase= "c:/tangjsp" ></Context>
</Host>
Notice the red part, the path inside is Tang and the front "/" must not be less, docbase for f:/tangjsp, these two names can not be the same, that is, can not be
<context path= "/tang" docbase= "F:/tang" ></Context>
If this is the case, there will be errors, this is the use of information on the Internet.
2, modify the%tomcat_home%/conf/web.xml XML code is : (list hint 404 error reason)
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
3, copy the Tomcat/webapps/root directory Web-inf file into the f:/tangjsp.
This is the only way to parse a JSP file. But you can parse HTML files