legacy-knowledge-base
公開されました Sep. 10, 2025

StrutsAction のオーバーライド時に actionMapping 変数にアクセスできない

written-by

Daniel Couso

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • StrutsAction がカスタム コンポーネントによってオーバーライドされている場合、変数 actionMapping 使用して適切な ActionForward オブジェクトを返すことができません。
  • 例:
return actionMapping.getActionForward("portal.verify_email_address");

環境

  • Liferay DXP 7.1+

解像度

  • Liferay DXP 7.1 以降、変数 actionMapping 使用できなくなりました。
  • ただし、 ActionForward オブジェクトを返す必要はなく、メソッド getActionForwardに渡されるパラメーターのみを返す必要があります。
  • 上記の例では、次のコードで目的の効果が得られます。
return "portal.verify_email_address";

did-this-article-resolve-your-issue

legacy-knowledge-base