在Struts2操作中处理参数值的地方?

问题描述

我在下面的struts.xml中看到了一个struts2动作,

<action name="router" class="com.struts.actions.Router" method="record">
    <param name="operation_name">
         get->get records,post->insert records,put->update records,delete->delete records
    </param>
</action>

代码基于HTTP请求方法处理请求。

例如:如果我的请求方法是GET,则此请求转到Router类并处理get_records()函数中的值。对于POST方法,它具有post_records()函数

我的问题是,此参数值如何根据HTTP请求方法映射“记录”方法。怎么回事?

谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)