03 2017 档案
摘要:一:可以是相对路径: 1、action="<%=request.getContextPath() %>/html/index.html" <%=request.getContextPath() %>表示回到应用的根目录下,再加上相对路径 2、action="/html/index.html" 表示在
阅读全文
摘要:1、在function的action中不加'/',是相当于在当前文件加下搜索(例如访问html/first.html,会在html路径的上层路径下搜索,而不是html路径下搜索),加'/'是在整个服务器目录下搜索,如果是tomcat,是http://localhost:8080下搜索 2、respo
阅读全文
摘要:一、<form action="Test/Login" method="post"> 在action中有两种表示方式: 1、"/Test/Login" 说明是相对于web服务器的根目录,可以理解为 http://localhost:8080/Test/Login 2、“Test/Login” 说明是
阅读全文
摘要:在myeclipse中修改自己servlet后,在次运行时,可能会没有变化,这时需要重启tomcat,重新加载servlet
阅读全文
浙公网安备 33010602011771号