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
The class you have listed below is CgSupplierMgmtSearchAction while the error message is for another class. Parameter injection for method [getFundraiserMgmtSearchData] on Action [gov.ca.doj.ems.action.CgFundraiserMgmtSearchAction] rejected -Prasanth On 5/16/25 1:51 PM, Priyanka Vaddadi wrot

RE: Struts 7 issue while posting the data

2025-05-16 Thread Priyanka Vaddadi
Hi I tried using depth = 1 as below public final class CgSupplierMgmtSearchAction extends EmsWebAction implements ValidationAware { private SupplierSearchData supplierMgmtSearchData; @StrutsParameter(depth = 1) public void setSupplierMgmtSearchData(SupplierSearchData supplierMgmtSearchData)

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