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

    Struts: Unused Action Form

    ABSTRACT

    unused action form 表明應用程序邏輯可能已經過時。

    EXPLANATION

    Struts 使用 form-bean 條目將 HTML 形式映射至操作。如果 Struts 配置文件的 <action-mappings> 元素中不包含與 <form-bean> 標簽定義的相關 action form 對應的項,應用程序邏輯可能已經過時。

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


    <form-beans>
    <form-bean name="bean1" type="coreservlets.UserFormBean1" />
    <form-bean name="bean2" type="coreservlets.UserFormBean2" />
    </form-beans>

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

    REFERENCES

    [1] Standards Mapping - OWASP Top 10 2010 - (OWASP 2010) A6 Security Misconfiguration

    [2] 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_unused_action_form

    97av