摘要: 做了许多Demo发现,浏览器解析的路径和服务器解析的路径是不同的。我们知道,路径加上/的时候,表示的是绝对路径的意思,而如果是服务器解析的话,这个/相对的是我们的web应用,即相对于http://192.168.0.1/webapp/。 而如果是浏览器解析的话,就是相对于服务器的根目录,相对于服务器 阅读全文
posted @ 2018-01-23 13:48 汪神 阅读(806) 评论(0) 推荐(0)
摘要: 转自http://blog.csdn.net/java_xiaobin/article/details/45363897 1.getAttribute是取得jsp中 用setAttribute設定的attribute 2.parameter得到的是string;attribute得到的是object 阅读全文
posted @ 2018-01-23 13:43 汪神 阅读(217) 评论(0) 推荐(0)
摘要: 部分内容转自:http://blog.csdn.net/zhouysh/article/details/380364和http://blog.csdn.net/frank_jay/article/details/51243481 1.RequestDispatcher.forward() 是在服务器 阅读全文
posted @ 2018-01-23 13:41 汪神 阅读(2622) 评论(0) 推荐(0)