在URL跳轉中有關絕對地址和相對地址的確定
最初是http://localhost:8080/app/cool.do
如果是sendRedirect("foo/stuff.html")
那么the Container builds the full URL :
http://localhost:8080/app/cool/foo/stuff.html
如果是sendRedirect("/foo/stuff.html")
那么the Container builds the full URL :
http://localhost:8080/app/foo/stuff.html
posted on 2007-11-09 09:20 劉錚 閱讀(458) 評論(0) 編輯 收藏 所屬分類: JSP and Servlet