首页 > 其他 > 详细

关于form的action路径填写

时间:2017-03-28 00:16:46      阅读:233      评论:0      收藏:0      [点我收藏+]

一:可以是相对路径:

    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"

 

关于form的action路径填写

原文:http://www.cnblogs.com/l1019/p/6629400.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!