Spring portlet @ActionMapping usage

折月煮酒 提交于 2019-12-03 04:05:58

I agree with your assessment as well. The only real advantage I can see when reading the spec is that some special handling in the tag was added. Apparently these two are equivalent:

<portlet:actionURL>
  <portlet:param name="javax.portlet.action" value="addDocOrder"/>
</portlet:actionURL>

<portlet:actionURL name="addDocOrder" />

That is from "PLT.26.2 actionURL Tag" in the spec.

javax.portlet.action is the name of the parameter that value() is mapped to. So for a mapping like:

@ActionMapping(value = "addDocOrder")
public void addDocOrder(@ModelAttribute("order").......

Your request should URL should be built like:

<portlet:actionURL>
  <portlet:param name="javax.portlet.action" value="addDocOrder"/>
</portlet:actionURL>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!