<dd id="sga4y"><optgroup id="sga4y"></optgroup></dd>
<nav id="sga4y"><code id="sga4y"></code></nav>
  • <optgroup id="sga4y"></optgroup>

    Struts Misconfiguration: Invalid Path

    ABSTRACT

    無效的路徑條目會導致 Struts 無法定位服務請求的正確資源。

    EXPLANATION

    Struts 使用 path 屬性定位處理請求所需的資源。該路徑是相對于模塊的位置,因此不以“/”字符開始的路徑是錯誤的。

    例 1:以下配置包含空路徑。

                       
    <global-exceptions>
    <exception key="global.error.invalidLogin" path="" scope="request" type="InvalidLoginException" />
    </global-exceptions>


    例 2:以下配置使用了不以“/”字符開始的路徑。

    <global-forwards>
    <forward name="login" path="Login.jsp" />
    </global-forwards>

    REFERENCES

    [1] Apache Struts 1.3 Specification

    [2] Chuck Caveness, Brian Keeton

    [3] struts-config_1_3.dtd


    Copyright 2013 Fortify Software - All rights reserved.
    (Generated from version 2013.1.1.0008 of the Fortify Secure Coding Rulepacks)
    desc.config.java.struts_misconfiguration_invalid_path

    97av