l1019

一:可以是相对路径:

    1、action="<%=request.getContextPath() %>/html/index.html"  <%=request.getContextPath() %>表示回到应用的根目录下,再加上相对路径

    2、action="/html/index.html"   表示在服务器的根目录下搜索html/index.html  /表示根目录

    3、action="index.html"   表示在当前目录下搜索

二:可以是绝对路径:

    action="http://localhost:8080/PracticeLogin/html/index.html"

 

分类:

技术点:

相关文章:

  • 2021-09-29
  • 2021-08-06
  • 2021-12-24
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2021-06-28
猜你喜欢
  • 2021-08-06
  • 2021-11-02
  • 2021-09-29
  • 2021-08-06
  • 2021-08-06
  • 2021-08-06
相关资源
相似解决方案