On Fri, May 16, 2025 at 17:24 Priyanka Vaddadi <priyanka.vadd...@doj.ca.gov.invalid> wrote:
> Parameter injection for method [getSupplierMgmtSearchData] on Action > [gov.ca.doj.ems.action.CgSupplierMgmtSearchAction] rejected. Ensure it is > annotated with @StrutsParameter with an appropriate 'depth'. Is it? The previous snippet showed an annotation on the setter. Dave https://struts.apache.org/security/#:~:text=If%20you%20wish%20to%20populate%20a%20DTO%20(Data%20Transfer%20Object)%20instead%20of%20setting%20the%20parameters%20directly%20on%20the%20Action%20class%2C%20youcan%20define%20a%20getter%20for%20the%20DTO%20on%20your%20Action%20class%20instead.%20For%20example%2C%20define%20a%20method%20public%20MyDto%20getFormData()which%20is%20also%20annotated%20by%20@StrutsParameter(depth%20=%201). <https://struts.apache.org/security/#:~:text=If%20you%20wish%20to%20populate%20a%20DTO%20%28Data%20Transfer%20Object%29%20instead%20of%20setting%20the%20parameters%20directly%20on%20the%20Action%20class%2C%20youcan%20define%20a%20getter%20for%20the%20DTO%20on%20your%20Action%20class%20instead.%20For%20example%2C%20define%20a%20method%20public%20MyDto%20getFormData%28%29which%20is%20also%20annotated%20by%20@StrutsParameter%28depth%20=%201%29.>