Result type "redirect"
is defined in the class
org.apache.struts2.dispatcher.ServletRedirectResult
Calls the
sendRedirect
method to the location specified. The response is told to redirect the browser to the specified location (a new request from the client). The consequence of doing this means that the action (action instance, action errors, field errors, etc.) that was just executed is lost and no longer available. This is because actions are built on a single-thread model. The only way to pass data is through the session or with web parameters (url?name=value
) which can be OGNL expressions.
Unless you didn't override it by defining a custom result type with the same name.
Unlike the bean
configuration result types could be overridden. But, it's not, and looking at the class docs you can determine that it doesn't have a field named reportType
. As a result you got that warning.
If you remove this param
from the result configuration it'll solve the problem.