Re: Struts 7 issue while posting the data

2025-05-16 Thread Dave Newton
Sounds like a validation error if it’s trying to go to the “input” result. It might be worth taking a small step back and either get a debugging environment working or check out some of the existing documentation, especially if there are places we can improve. d em: davelnew...@gmail.com mo: 908-

RE: Struts 7 issue while posting the data

2025-05-16 Thread Priyanka Vaddadi
Hi Thanks for that. When I annotate over getter method it worked for me. But I am getting one more error while downloading file It was working fine in struts 2.3. now while migrating to struts 7, below code in struts.xml is not working

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
Hi Sorry . I attached incorrect log Below is the log ERROR [org.apache.struts2.interceptor.parameter.ParametersInterceptor] (default task-1) Developer Notification (set struts.devMode to false to disable this message): Parameter injection for method [getSupplierMgmtSearchData] on Action [gov.ca

JSP/file upload issue

2025-05-16 Thread Deborah White
Hello, migrating from 2.3 to 7.0 and this no longer works. I am not getting the document or the document name. I have this in my jsp page: var options = { target: '#complaintDetailsDiv', beforeSubmit

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)