The difference is obvious: redirectAction
is just another result type, which extends redirect
result type providing the attributes actionName
, namespace
, and method
. These attributes used to build the URI used to substitute for the location
attribute of the redirect
result type.
The statement is ok, better build URL from ActionMapping
which is implemented by the redirectAction
result type instead of coding it manually. Even manually always use the UrlHelper
instead of hardcoding. In the JSP always use the s:url
tag.