Re: Struts 7 issue while posting the data

2025-05-16 Thread Dave Newton
ptor.java:92) > > deployment.ems.war//org.apache.struts2.DefaultActionInvocation.executeConditional(DefaultActionInvocation.java:311) > > deployment.ems.war//org.apache.struts2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:265) > > deployment.ems.war//org.apache.struts2.i

RE: Struts 7 issue while posting the data

2025-05-16 Thread Priyanka Vaddadi
.intercept(ActionFileUploadInterceptor.java:151) deployment.ems.war//org.apache.struts2.DefaultActionInvocation.executeCondition From: Priyanka Vaddadi Sent: Friday, May 16, 2025 1:48 PM To: user@struts.apache.org Subject: RE: Struts 7 issue while posting the data Hi Sorry . I attached incorrect

Re: Struts 7 issue while posting the data

2025-05-16 Thread Prasanth
See https://struts.apache.org/security/#defining-and-annotating-your-action-parameters On 5/16/25 4:34 PM, Dave Newton wrote: On Fri, May 16, 2025 at 17:24 Priyanka Vaddadi wrote: Parameter injection for method [getSupplierMgmtSearchData] on Action [gov.ca.doj.ems.action.CgSupplierMgmtSearch

Re: Struts 7 issue while posting the data

2025-05-16 Thread Dave Newton
On Fri, May 16, 2025 at 17:24 Priyanka Vaddadi 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 sho

RE: Struts 7 issue while posting the data

2025-05-16 Thread Priyanka Vaddadi
with an appropriate 'depth'. Thanks and Regards Priyanka From: Priyanka Vaddadi Sent: Friday, May 16, 2025 11:51 AM To: user@struts.apache.org Subject: RE: Struts 7 issue while posting the data Hi I tried using depth = 1 as below public final class CgSupplierMgmtSearchAction e

Re: Struts 7 issue while posting the data

2025-05-16 Thread Prasanth
archAction] rejected. Ensure it is annotated with @StrutsParameter with an appropriate 'depth'. Thanks and Regards Priyanka From: Priyanka Vaddadi Sent: Thursday, May 15, 2025 12:50 PM To:user@struts.apache.org Subject: Struts 7 issue while posting the data Hi We are migrating from

RE: Struts 7 issue while posting the data

2025-05-16 Thread Priyanka Vaddadi
sure it is annotated with @StrutsParameter with an appropriate 'depth'. Thanks and Regards Priyanka From: Priyanka Vaddadi Sent: Thursday, May 15, 2025 12:50 PM To: user@struts.apache.org Subject: Struts 7 issue while posting the data Hi We are migrating from struts 2.3 to struts 7.

Re: Struts 7 issue while posting the data

2025-05-15 Thread Prasanth
You have to annotate the set method for that class in your action with @StrutsParameter(depth=1). int depth The depth to which parameter injection is permitted, where a depth of 0 only allows setters/fields directly on the action class. Setting within a POJO on an ac

Struts 7 issue while posting the data

2025-05-15 Thread Priyanka Vaddadi
Hi We are migrating from struts 2.3 to struts 7.0.0 As part of this migration I am facing below issue There is a action class in my project in which we defined SupplierSearchData variable as below public final class CgSupplierMgmtSearchAction extends EmsWebAction implements ValidationAware {