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

    Struts Misconfiguration: Missing Form Bean

    ABSTRACT

    指向不存在的 form-bean 的 Struts action 將不會正確進行映射。

    EXPLANATION

    Struts 使用 form-bean 條目將 HTML 形式映射至操作。如果 <action> 標簽中的 name 屬性與 form-bean 的名稱不對應,則無法映射此操作,并表示存在冗余定義或排字錯誤。

    例 1:以下配置不包含 bean2 的映射。


    <form-beans>
    <form-bean name="bean1" type="coreservlets.UserFormBean" />
    </form-beans>

    <action-mappings>
    <action path="/actions/register1" type="coreservlets.RegisterAction1" name="bean1" scope="request" />
    <action path="/actions/register2" type="coreservlets.RegisterAction2" name="bean2" scope="request" />
    </action-mappings>

    REFERENCES

    [1] Apache Struts 1.3 Specification


    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_missing_form_bean

    97av