Struts2 學習筆記之重定向(redirect)

redirect結果類型調用標準的response.sendRedirect()方法,使得瀏覽器向給定的位置建立一個新請求。咱們能夠在<result ...>元素的主體中或做爲<param name="location">的元素中給定位置。redirect還支持parse參數,如下是使用XML配置的示例:html <?xml version="1.0" encoding="UTF-8"?> <!D
相關文章
相關標籤/搜索