Re: [External] : Re: Struts 7 upgrade - looking for the javax.servlet.Filter instead of jakarta.*

2025-07-12 Thread Lukasz Lenart
I updated the Getting Started guide to Struts 7 https://github.com/apache/struts-site/pull/272 Cheers Łukasz - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.o

Re: [External] : Re: Struts 7 upgrade - looking for the javax.servlet.Filter instead of jakarta.*

2025-07-12 Thread Lukasz Lenart
pt., 11 lip 2025 o 07:58 IGRA TRANSFORMING KNOWLEDGE napisał(a): > > can anyone share the code of crud operation using strut7. > > however, still struts official displaying 2.5 version > https://struts.apache.org/getting-started/how-to-create-a-struts2-web-application That shouldn't be a problem,

Re: Extend CSP (Content Security Policy)

2025-07-12 Thread Lukasz Lenart
śr., 9 lip 2025 o 20:03 Ute Kaiser napisał(a): > > Hi, > I want to add > frame-ancestors 'self' > to the HTTP-Headers provided by Struts7 (using enforce-mode) > > Unfortunately I do not understand > https://struts.apache.org/core-developers/csp-interceptor > > Neither do I want to replace Default

Re: [External] : Re: Struts 7 upgrade - looking for the javax.servlet.Filter instead of jakarta.*

2025-07-10 Thread IGRA TRANSFORMING KNOWLEDGE
asz, > Following up on this, does this mean, we will have to migrate to > Struts 7 when taking up WLS 15 which supports jakartax.*? > > ~K > > > -Original Message- > From: Lukasz Lenart > Sent: Wednesday, July 9, 2025 10:31 AM > To: Struts Users Mailing List &

Re: [External] : Re: Struts 7 upgrade - looking for the javax.servlet.Filter instead of jakarta.*

2025-07-10 Thread Lukasz Lenart
uts 7 when taking up WLS 15 which supports jakartax.*? > > ~K > > > -Original Message- > From: Lukasz Lenart > Sent: Wednesday, July 9, 2025 10:31 AM > To: Struts Users Mailing List > Subject: [External] : Re: Struts 7 upgrade - looking for the > javax.servl

RE: [External] : Re: Struts 7 upgrade - looking for the javax.servlet.Filter instead of jakarta.*

2025-07-10 Thread Krishnaraj Viswanathan
Lukasz, Following up on this, does this mean, we will have to migrate to Struts 7 when taking up WLS 15 which supports jakartax.*? ~K -Original Message- From: Lukasz Lenart Sent: Wednesday, July 9, 2025 10:31 AM To: Struts Users Mailing List Subject: [External] : Re: Struts

Re: Struts 7 upgrade - looking for the javax.servlet.Filter instead of jakarta.*

2025-07-08 Thread Lukasz Lenart
After asking Perplexity I got such an answer: WebLogic 14c is compatible with Jakarta EE 8 only. It does not support Jakarta EE 9 or later versions, which introduce the new `jakarta.*` namespace Cheers Lukasz pon., 7 lip 2025 o 20:43 Arsen Milutsa napisał(a): > > Hello, > > Getting the complianc

RE: [External] : Struts 7 upgrade - looking for the javax.servlet.Filter instead of jakarta.*

2025-07-08 Thread Krishnaraj Viswanathan
To my knowledge, WLS 14 is yet to support jakartaEE and it is still on JavaEE. WLS 15c is where the shift is happening. You might have to stay on Struts 6 for WLS 14. Again, this is not something that I know for sure, but something I understood from my initial reading. ~K -Original Messa

Re: issue with iframe when upgrading from struts 2.3 to struts 7

2025-06-19 Thread Dave Newton
On Thu, Jun 19, 2025 at 13:54 Priyanka Vaddadi wrote: > But when we enter username and password, nothing is happening. When we > click on submit, the page did not navigate further and just clearing the > username and password and stay on same login page.. Is the request being made? Check the JS

Re: Issue with Namespace Configuration

2025-06-11 Thread Joseph Huynh
Hi Lukasz, Sorry, it was a false alarm to report Struts2 failed to dispatch in case of duplicate names in the same namespace. I used System.out to monitor the flow and I didn't see what I expected to see and thought it silently failed. I now switch to log4j2 framework and can verify the flow fr

Re: Issue with Namespace Configuration

2025-06-10 Thread Lukasz Lenart
śr., 11 cze 2025 o 00:59 Joseph Huynh napisał(a): > > Hi Lukasz, > I just figured out that I had bundled struts.xml in wrong place in WEB-INF/ > instead of in WEB-INF/classes/. It is dispatching correctly now. My > struts.xml is mostly fine except for the duplicate result name in the same > na

Re: Issue with Namespace Configuration

2025-06-10 Thread Joseph Huynh
Hi Lukasz, I just figured out that I had bundled struts.xml in wrong place in WEB-INF/ instead of in WEB-INF/classes/. It is dispatching correctly now. My struts.xml is mostly fine except for the duplicate result name in the same namespace. I think Struts2 fails (silently) to dispatch in this c

Re: struts-tag property in javascript

2025-06-10 Thread Dave Newton
On Tue, Jun 10, 2025 at 13:37 Lukasz Lenart wrote: > Nope, basically ${} means "use JSP EL" which is prohibited "inside" S2 > tags, using %{} means "use OGNL expression" which is fine. Oops, forgot about that smh d

Re: struts-tag property in javascript

2025-06-10 Thread Lukasz Lenart
wt., 10 cze 2025 o 18:23 Ute Kaiser napisał(a): > > Update after more investigating Nate's answer: > > onclick="document.getElementById('deleteid').value='%{id}';"> > > Using ${id} threw an error (I suppose my config not fit for JSP EL) Nope, basically ${} means "use JSP EL" which is prohibited

Aw: Re: Sample JSP using Error and Exception Values without exception.message

2025-06-10 Thread Ute Kaiser
Lukasz, thank you for updating the documentation. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

RE: struts-tag property in javascript

2025-06-10 Thread Ute Kaiser
Update after more investigating Nate's answer: Using ${id} threw an error (I suppose my config not fit for JSP EL) Best regards Ute - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail:

Re: Issue with Namespace Configuration

2025-06-10 Thread Lukasz Lenart
Is there a chance to expose source code of your app on Github? And I would suggest learning how to use Maven to build the app instead of Ant. Cheers Lukasz pt., 6 cze 2025 o 18:49 Joseph Huynh napisał(a): > > Hello, > I have a simple web application to learn how the controller works in Struts

Aw: RE: struts-tag property in javascript

2025-06-06 Thread Ute Kaiser
Hi and thx for your fast answers. I am aware that migration could go much deeper in cleaning up but rewriting the action und jsp files is fissel work enough at the moment. Dave's answer "But you should be able use standard JSP EL iirc." inspired me. First I did not understand (never used EL), th

RE: struts-tag property in javascript

2025-06-06 Thread Nate Kerkhofs
server values, you can put those in a separate script tag inside the head of your page using s:property tags: var jsProperty = <s:property value="id" />; Nate -Original Message- From: Dave Newton Sent: Friday, 6 June 2025 15:58 To: Struts Users Mailing List Subject

Re: struts-tag property in javascript

2025-06-06 Thread Dave Newton
On Fri, Jun 6, 2025 at 09:14 Ute Kaiser wrote: > Hi, > migrating from Struts1 I encounter in a jsp the error "Equal symbol > expected" at the "onclick" row. > I think my old quotes do not work any more with Struts2. > > Struts1: > > > onclick="javascript:if(confirmDelete()){document.getElemen

Re: File Upload Failure in Struts 7.0.3 Migration - UploadedFilesAware Implementation Issue

2025-06-03 Thread Jesus Moreno
Thank you Zoran and I appreciate your assistance, but I believe we are tackling the problem with a very small application, whereas what we actually need is to implement or replace the file upload functionality from version 2.5 to version 7.0.3 in a larger application, where we already have almost 1

Re: File Upload Failure in Struts 7.0.3 Migration - UploadedFilesAware Implementation Issue

2025-06-03 Thread Zoran Avtarovski
Thanks for that. It doesn't look like you have the same issue we did. I wish I could be of more help. I can only suggest start with example app working and then implement your requirements on a step by step basis. In the end that's what helped us identify the issue and get it working. Z.

Re: File Upload Failure in Struts 7.0.3 Migration - UploadedFilesAware Implementation Issue

2025-06-03 Thread Jesus Moreno
Sure, my web.xml looks like this: https://jakarta.ee/xml/ns/jakartaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd"; version="6.0"> Struts Blank

Re: File Upload Failure in Struts 7.0.3 Migration - UploadedFilesAware Implementation Issue

2025-06-03 Thread Jesus Moreno
Sure, my web.xml looks like this: https://jakarta.ee/xml/ns/jakartaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd"; version="6.0"> Struts Blank

Re: File Upload Failure in Struts 7.0.3 Migration - UploadedFilesAware Implementation Issue

2025-06-02 Thread Zoran Avtarovski
Hi Jesus, What does your web.xml look like with regards to the struts filters? We had a similar issue which was resolved by moving to the combined StrutsPrepareAndExecuteFilter. Sitemesh also played a part in our issue, but I think by what you are seeing it's worth trying. Z. On 1/6/2025 6:

Re: Sample JSP using Error and Exception Values without exception.message

2025-06-02 Thread Lukasz Lenart
pt., 30 maj 2025 o 19:45 Ute Kaiser napisał(a): > https://struts.apache.org/core-developers/exception-configuration > > I tried the "Sample JSP using Error and Exception Values" > but was not displayed. > > Some error in my config, or outdated? There is a bug in the doc, use https://github.com/

Re: File Upload Failure in Struts 7.0.3 Migration - UploadedFilesAware Implementation Issue

2025-05-31 Thread Jesus Moreno
Hi Lukasz, thanks for your appreciated comments. I would like to explain in more detail what we have done to try to find the problem and solve it. Here the context: This is my environment: - Struts Version: 7.0.3 - Java Version: 17 - Servlet Container: Apache Tomcat 10.1.36 - Key Dependencies (p

Re: Re: Struts7 Allowlist Capability

2025-05-29 Thread Lukasz Lenart
czw., 29 maj 2025 o 20:42 Ute Kaiser napisał(a): > > Lukasz, thank you for your advice. > I got rid of almost all by moving logic into the action and passing new flags > to jsp instead. > > e.g. > Migrating struts1 > > > by > > raised > WARN [org.apache.struts2.ognl.SecurityMemberAccess] (def

Aw: Re: Struts7 Allowlist Capability

2025-05-29 Thread Ute Kaiser
Lukasz, thank you for your advice. I got rid of almost all by moving logic into the action and passing new flags to jsp instead. e.g. Migrating struts1 by raised WARN [org.apache.struts2.ognl.SecurityMemberAccess] (default task-2) Declaring class [class java.util.ArrayList] of member type [p

Re: Struts7 Allowlist Capability

2025-05-29 Thread Lukasz Lenart
This happens if you use java.util.Locale directly in an expression - SecurityMemberAccess is only involved if an OGNL expression is used. Having said that, I wouldn't use any of java.* jakarta.* in OGNL expressions as this brings a security risk. Moving such logic into actions is the safest option.

Aw: Re: Setting struts.devMode only in struts.xml?

2025-05-29 Thread Ute Kaiser
Thank you Lukasz, Great advice and great documentation. I guess I need some search machine on the documentation. I edited struts.xml and added the variable to the Eclipse Wildfly Runtime (Tab Environment), and it works fine. Best regards Ute

Re: Setting struts.devMode only in struts.xml?

2025-05-29 Thread Lukasz Lenart
czw., 29 maj 2025 o 11:22 Ute Kaiser napisał(a): > > I face the issue that I have to change my struts.xml any time I want to > deploy from dev environment to test or production environment. > Either struts.devMode value=true or false. This might lead to deploying > devMode to production by accid

Re: Struts 7.0 issue with Ftl

2025-05-28 Thread Lukasz Lenart
czw., 29 maj 2025 o 05:24 Priyanka Vaddadi napisał(a): > when I replace > <#if parameters.nameValue??> > value="<@s.property value="parameters.nameValue"/>"<#rt/> > with > > <#if attributes.name??> > value="<@s.property value="%{attributes.name}"/>"<#rt/> > Why do you replace "nameValue" with "

RE: Struts 7.0 issue with Ftl

2025-05-28 Thread Priyanka Vaddadi
ame displayed in text box but not parameter value Please help me with this Thank and Regards Priyanka From: Priyanka Vaddadi Sent: Wednesday, May 28, 2025 6:55 AM To: user@struts.apache.org Subject: RE: Struts 7.0 issue with Ftl Hi When I change below code <#if parameters.disabled?string?

Re: Struts 7.0 issue with Ftl

2025-05-28 Thread Dave Newton
On Wed, May 28, 2025 at 09:58 Priyanka Vaddadi wrote: The following has evaluated to null or missing: ==> attributes.disabled [in template "template/wam/text.ftl" at line 51, column 6] If the app has its own theme/templates/etc they may need updating. * https://struts.apache.org/getting-star

RE: Struts 7.0 issue with Ftl

2025-05-28 Thread Priyanka Vaddadi
Hi When I change below code <#if parameters.disabled?string?lower_case == "true"> disabled="disabled"<#rt/> with <#if attributes.disabled?string?lower_case == "true"> disabled="disabled"<#rt/> I am getting below error FreeMarker template error (HTML_DEBUG mode; use RETHROW in production!) T

Re: Struts 7.0 issue with Ftl

2025-05-28 Thread Lukasz Lenart
śr., 28 maj 2025 o 12:25 Priyanka Vaddadi napisał(a): > > Hi > > I am getting below error while loading the page after migrating to struts 7 > Pleaselet me know what could be the issue > > > Template inclusion failed (for parameter value > "/Empty{name='templateDir'}/simple/checkbox.ftl"): > Temp

RE: Help with jsp/iframe Struts 7

2025-05-22 Thread Nate Kerkhofs
suggest you contact your internal legal counsel regarding this matter. Regards, Nate -Original Message- From: Deborah White Sent: Wednesday, 21 May 2025 18:49 To: Struts Users Mailing List Subject: RE: Help with jsp/iframe Struts 7 Actually, never mind. It is working, just extremely slow

RE: Help with jsp/iframe Struts 7

2025-05-21 Thread Deborah White
Actually, never mind. It is working, just extremely slow. We do have another case that we have an issue with though. My colleague will post. -Original Message- From: Deborah White Sent: Wednesday, May 21, 2025 9:40 AM To: Struts Users Mailing List Subject: Help with jsp/iframe Struts 7

Re: ActionFileUploadInterceptor Issue

2025-05-19 Thread Lukasz Lenart
I extended the example and it only works with two filters. If I use one filter it won't work https://github.com/apache/struts-examples/pull/461 Also it works properly only with 7.0.3, the changes introduced in this PR broke the integration https://github.com/apache/struts/pull/1265 and now I'm in

Re: error while uploading file using struts 7

2025-05-19 Thread Lukasz Lenart
wt., 20 maj 2025 o 06:28 Priyanka Vaddadi napisał(a): > WE are receiving document name and document received date and documentTYpeId. > But not actual content of document. > I mean the below variableis not getting populated with data. But the > same variable gets populated with data with st

Re: JSP/file upload issue

2025-05-19 Thread Lukasz Lenart
wt., 20 maj 2025 o 00:22 Deborah White napisał(a): > It was never implemented like that where I can see. There is no reference to > interceptor-ref name=fileUpload. Not sure what you mean by that, but the new ActionFileuploadInterceptor has been added in Struts 6.4 and to use it your actions mus

RE: JSP/file upload issue

2025-05-19 Thread Deborah White
It was never implemented like that where I can see. There is no reference to interceptor-ref name=fileUpload. -Original Message- From: Lukasz Lenart Sent: Sunday, May 18, 2025 12:34 AM To: Struts Users Mailing List Subject: Re: JSP/file upload issue EXTERNAL EMAIL: This message was

Re: Logging

2025-05-18 Thread Lukasz Lenart
śr., 14 maj 2025 o 23:52 Deborah White napisał(a): > Hello, since updating to Struts 7, I am receiving these errors and have not > had a log4j.properties file for years. > 14:46:37,983 ERROR [stderr] (default task-1) log4j:WARN No appenders could be > found for logger (freemarker.cache). > > 14:

Re: Context path errors

2025-05-18 Thread Lukasz Lenart
śr., 14 maj 2025 o 23:54 Deborah White napisał(a): > > Updating to Struts 7 and I am receiving context path errors like: > > 13:46:46,495 WARN [org.apache.struts2.dispatcher.Dispatcher] (default > task-1) Could not find action or result: /SOTAS/sotas/storeUserName.action: > There is no Action m

Re: JSP/file upload issue

2025-05-18 Thread Lukasz Lenart
Did you migrate to the Action based file upload interceptor? https://cwiki.apache.org/confluence/display/WW/Struts+6.x.x+to+7.x.x+migration#Struts6.x.xto7.x.xmigration-Fileupload Support for old FileuploadInterceptor has been removed in Struts 7 also it's related to the security vulnerability http

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

Re: ActionFileUploadInterceptor Issue

2025-05-14 Thread Zoran Avtarovski
Hi Lukasz, We have resolved the issue and I thought I would share our findings. I'd hate to see someone as frustrated as our junior here was. He was quite the angry young man. The issue was the struts filters. Our app was setup using the struts-prepare and struts-execute filters separately a

Re: File Upload Failure in Struts 7.0.3 Migration - UploadedFilesAware Implementation Issue

2025-05-13 Thread Lukasz Lenart
sob., 10 maj 2025 o 07:09 Jesus Moreno napisał(a): > 2025-05-09 01:00:25 WARN File:79 - Struts has detected a file upload UI tag > (s:file) being used without a form set to method 'POST' > (Despite being > correctly declared) This can be related to cached JSP files, please remove them from the c

Re: ActionFileUploadInterceptor Issue

2025-05-13 Thread Zoran Avtarovski
Thanks Lukasz, We got the file-upload test app to work without any real issues. It's no a case of adding all the interceptors and other libraries we use to see which is changing the request object. I've got one of the young guys on it. They are having so much fun right now :) Z. On 14/5

Re: ActionFileUploadInterceptor Issue

2025-05-13 Thread Lukasz Lenart
Could you check if this example works for you? https://github.com/apache/struts-examples/tree/main/file-upload wt., 13 maj 2025 o 08:28 Zoran Avtarovski napisał(a): > > Hi Lukasz, > > That's what I thought initially, but we only use the spring plugin for > dependency injection and the tomcat chan

Re: ActionFileUploadInterceptor Issue

2025-05-12 Thread Zoran Avtarovski
Hi Lukasz, That's what I thought initially, but we only use the spring plugin for dependency injection and the tomcat changes seem to happen much earlier in the request cycle. I was wondering if any of the interceptors in the defaultStack might be making a change. I was being lazy and hoping

Re: ActionFileUploadInterceptor Issue

2025-05-12 Thread Lukasz Lenart
What else do you use? Spring, Tomcat? It looks like something is changing the type of MultiPartRequestWrapper between Dispatcher and interceptors, mayb the request is wrapped with another proxy? wt., 13 maj 2025 o 01:48 Zoran Avtarovski napisał(a): > > Hi Guys, > > We have started migrating our a

Re: Re: Aw: Re: Aw: File Upload Failure in Struts 7.0.3 Migration - UploadedFilesAware Implementation Issue

2025-05-12 Thread Jesus Moreno
urs is not. > > > > > > Best regards > > > Ute > > > > > > > Gesendet: Samstag, 10. Mai 2025 um 18:45 > > > > Von: "Jesus Moreno" > > > > An: user@struts.apache.org, "Struts Users Mailing List" > > >

Re: Re: Aw: Re: Aw: File Upload Failure in Struts 7.0.3 Migration - UploadedFilesAware Implementation Issue

2025-05-12 Thread utkai
0600, Ute Kaiser , wrote: > > I am also sorry because I can not see the difference why my upload is > > working and yours is not. > > > > Best regards > > Ute > > > > > Gesendet: Samstag, 10. Mai 2025 um 18:45 > > > Von: "Jesus Moreno" >

Re: Aw: Re: Aw: File Upload Failure in Struts 7.0.3 Migration - UploadedFilesAware Implementation Issue

2025-05-12 Thread Jesus Moreno
@struts.apache.org, "Struts Users Mailing List" > > > > Betreff: Re: Aw: File Upload Failure in Struts 7.0.3 Migration - > > UploadedFilesAware Implementation Issue > > > > Ohh sorry about my current configuration that I shared but I was trying > > many op

Aw: Re: Aw: File Upload Failure in Struts 7.0.3 Migration - UploadedFilesAware Implementation Issue

2025-05-12 Thread Ute Kaiser
I am also sorry because I can not see the difference why my upload is working and yours is not. Best regards Ute > Gesendet: Samstag, 10. Mai 2025 um 18:45 > Von: "Jesus Moreno" > An: user@struts.apache.org, "Struts Users Mailing List" > > Betreff: Re: Aw:

Aw: RE: Struts 7 problem

2025-05-12 Thread Ute Kaiser
case seems to be different (MY or My). Best regards Ute Gesendet: Freitag, 9. Mai 2025 um 23:59 Von: "Deborah White" An: "Struts Users Mailing List" Betreff: RE: Struts 7 problem And another one is: I tried adding which did not work. I am not seeing correct screens based on

Aw: RE: Struts 7 problem

2025-05-12 Thread Ute Kaiser
Maybe it helps: I could see: Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest Struts7 uses jakarta, not javax Mit freundlichen Grüßen Ute Kaiser Gesendet: Freitag, 9. Mai 2025 um 23:54 Von: "Deborah White" An: "Struts Users Mailing List" B

Aw: Re: Validation problem

2025-05-12 Thread Ute Kaiser
esign my error messages. Best regards Ute > Gesendet: Dienstag, 6. Mai 2025 um 10:55 > Von: "Lukasz Lenart" > An: "Struts Users Mailing List" > Betreff: Re: Validation problem > > > Not sure if I understood your issue, did you try to use escape ch

Re: Aw: File Upload Failure in Struts 7.0.3 Migration - UploadedFilesAware Implementation Issue

2025-05-10 Thread Jesus Moreno
Ohh sorry about my current configuration that I shared but I was trying many options. First I was trying exactly refer to the documentation but I did not have success. 1. According to the docs, it’s unnecessary put interceptor refer again, because defaultStack consider use actionFileUpload inte

Aw: Re: Struts 7 problem

2025-05-10 Thread Wolfgang Knauf
m 00:49 > Von: "Dave Newton" > An: "Struts Users Mailing List" > Betreff: Re: Struts 7 problem > > Tangential, but I’d consider wrapping up long OGNL excursions somewhere > else besides the view layer. > > em: davelnew...@gmail.com > mo: 908-380-8699 &

Re: Struts 7 problem

2025-05-09 Thread Dave Newton
am_Manager") || > #request["MYUtils"].isUserInRole("Audit_Supervisor") || > #request["MYUtils"].isUserInRole("Audit_Staff") || > #request["MYUtils"].isUserInRole("Level_1_Processor") || > #request["MYUtils"].isUs

Re: Struts 7 problem

2025-05-09 Thread Prasanth
'struts.allowlist.classes' or 'struts.allowlist.packageNames' configuration. 14:56:11,308 WARN  [org.apache.struts2.ognl.SecurityMemberAccess] (default task-1) Declaring class [class gov.ca.doj.sotas.databean.UserData] of member type [public int gov.ca.doj.sotas.databean.Use

RE: Struts 7 problem

2025-05-09 Thread Deborah White
sses' or 'struts.allowlist.packageNames' configuration. 14:56:11,308 WARN [org.apache.struts2.ognl.SecurityMemberAccess] (default task-1) Declaring class [class gov.ca.doj.sotas.databean.UserData] of member type [public int gov.ca.doj.sotas.databean.UserData.getPwdDaysToExp()] is not allowlisted!

RE: Struts 7 problem

2025-05-09 Thread Deborah White
iser Sent: Friday, May 9, 2025 2:50 PM To: user@struts.apache.org Subject: Re: Struts 7 problem EXTERNAL EMAIL: This message was sent from outside DOJ. Please do not click links or open attachments that appear suspicious. Security<https://urldefense.proofpoint.com/v

Re: Struts 7 problem

2025-05-09 Thread Ute Kaiser
th: #request["MYUtils"].isUserInRole("Program_Manager") || #request["MYUtils"].isUserInRole("Audit_Supervisor") || #request["MYUtils"].isUserInRole("Audit_Staff") || #request["MYUtils"].isUserInRole("Level_1_Processor") || #request[&

RE: Struts 7 problem

2025-05-09 Thread Deborah White
quot;MYUtils"].isUserInRole("Audit_Staff") || #request["MYUtils"].isUserInRole("Level_1_Processor") || #request["MYUtils"].isUserInRole("Level_2_Processor") || #request["MYUtils"].isUserInRole("Level_3_Process

Re: Struts 7 problem

2025-05-09 Thread Wolfgang Knauf
Hi Deborah, could be a matter of casing - the attribute is "escapeHtml": https://struts.apache.org/tag-developers/property-tag.html Does this help? Wolfgang Am 09.05.25 um 20:15 schrieb Deborah White: I am getting this error after migrating to Struts 7.0.0. JBWEB004251: An error occurred a

Re: Validation problem

2025-05-06 Thread shankar sawate
Do you have a new implementation of the Dojo DateTimePicker? If so, please share how to implement it, as the old one is deprecated On Tue, 6 May, 2025, 2:27 pm Lukasz Lenart, wrote: > śr., 30 kwi 2025 o 19:47 Ute Kaiser napisał(a): > > > > Hi, > > I tried according to > > https://struts.apache.

Re: Validation problem

2025-05-06 Thread Lukasz Lenart
śr., 30 kwi 2025 o 19:47 Ute Kaiser napisał(a): > > Hi, > I tried according to > https://struts.apache.org/core-developers/validation > Customizing validation messages > XML > > This is the example from above: > > > > getText('username.field.name') > > > >

Re: NPE in StrutsUploadedFile

2025-05-05 Thread Lukasz Lenart
PR is ready for review https://github.com/apache/struts/pull/1262 wt., 29 kwi 2025 o 19:13 Lukasz Lenart napisał(a): > > wt., 29 kwi 2025 o 14:59 Tamás Barta napisał(a): > > Lukas, could you please fix this bug? > > Sure, please register a ticket :) > > > Cheers > Łukasz ---

Re: NPE in StrutsUploadedFile

2025-04-29 Thread Lukasz Lenart
wt., 29 kwi 2025 o 14:59 Tamás Barta napisał(a): > Lukas, could you please fix this bug? Sure, please register a ticket :) Cheers Łukasz - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-m

Re: NPE in StrutsUploadedFile

2025-04-29 Thread Tamás Barta
Hi! I'm afraid I can't and the action class itself is not relevant here, because it isn't called yet. Before the ERROR log (the stacktrace) there is only one log line with empty message: 2025-04-29 10:08:21,810 WARN [org.apache.struts2.interceptor.AbstractFileUploadInterceptor] (default task-131

Re: NPE in StrutsUploadedFile

2025-04-29 Thread M Huzaifah
Hii Tamás, Could you please attach your action class, so all of us in here can see the details. Thank you On Tue, Apr 29, 2025 at 7:00 PM Tamás Barta wrote: > > Hi! > > We use Struts 6.7.4 and today we got the following exception in our > production system. I don't know how it is possible or ho

Re: Strange issue displaying numbers when in Arabic locale

2025-04-22 Thread Lukasz Lenart
wt., 22 kwi 2025 o 04:35 Zoran Avtarovski napisał(a): > > Thanks Lukasz, > > I'll submit a ticket and the fix we finally went with. We ended up going > with interceptor params to implement. We made small changes to 3 files: > > 1. LocaleProvider interface > 2. DefaultLocaleProvider > 3. I18nInt

Re: Strange issue displaying numbers when in Arabic locale

2025-04-22 Thread Lukasz Lenart
wt., 22 kwi 2025 o 17:27 shankar sawate napisał(a): > > If you have any sample code using Jakarta, I would really appreciate it if > you could share it with me. It would be very helpful You can find an example code attached to the ticket https://issues.apache.org/jira/browse/WW-5543 Cheers Łuka

Re: Strange issue displaying numbers when in Arabic locale

2025-04-22 Thread shankar sawate
If you have any sample code using Jakarta, I would really appreciate it if you could share it with me. It would be very helpful On Tue, 22 Apr, 2025, 8:05 am Zoran Avtarovski, wrote: > Thanks Lukasz, > > I'll submit a ticket and the fix we finally went with. We ended up going > with interceptor

Re: Strange issue displaying numbers when in Arabic locale

2025-04-21 Thread Zoran Avtarovski
Thanks Lukasz, I'll submit a ticket and the fix we finally went with. We ended up going with interceptor params to implement. We made small changes to 3 files: 1. LocaleProvider interface 2. DefaultLocaleProvider 3. I18nInterceptor It's been working well in our prod environment. Z. On 17/4/

Re: Request for Assistance with OWASP ZAP Vulnerabilities in Struts-Based Java Web Application

2025-04-20 Thread Shivam Agrahari
other missing headers as well, but I’m not sure. > More information can be found in the documentation. > > > > Regards, > > > > Nate > > > > *From:* Shivam Agrahari > *Sent:* Wednesday, 16 April 2025 13:36 > *To:* Struts Users Mailing List > *S

Re: Issue in Struts 7.0.0 with tag

2025-04-17 Thread Wolfgang Knauf
Hi, the error "java.lang.NullPointerException: Cannot invoke "org.apache.struts2.ActionInvocation.getProxy()" because "invocation" is null" sounds like a problem that I ran into: https://issues.apache.org/jira/browse/WW-5475 Do you by any chance call JSP pages directly, instead of invoking an

Re: Issue in Struts 7.0.0 with tag

2025-04-17 Thread shankar sawate
I have also tried using Tomcat 11, but I’m still facing the same issue. Could you please provide a sample code migrated to Jakarta? On Thu, 17 Apr, 2025, 6:25 pm M Huzaifah, wrote: > Hii Shakar, > > Could you please try to use tomcat 11. > > I faced issue about file upload using tomcat 11. > > R

Re: Issue in Struts 7.0.0 with tag

2025-04-17 Thread M Huzaifah
Hii Shakar, Could you please try to use tomcat 11. I faced issue about file upload using tomcat 11. Regards On Thu, Apr 17, 2025, 2:06 PM shankar sawate wrote: > Hi Team, > > If you have any sample code related to Jakarta migration, please share it > with me — it would be really helpful. >

Re: Issue in Struts 7.0.0 with tag

2025-04-17 Thread shankar sawate
Hi Team, If you have any sample code related to Jakarta migration, please share it with me — it would be really helpful. On Thu, Apr 17, 2025 at 12:30 PM shankar sawate wrote: > And I face this issue after deploying. > > 17-Apr-2025 12:28:09.568 SEVERE [http-nio-8083-exec-1] > org.apache.ca

Re: Issue in Struts 7.0.0 with tag

2025-04-17 Thread shankar sawate
And I face this issue after deploying. 17-Apr-2025 12:28:09.568 SEVERE [http-nio-8083-exec-1] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [jsp] in context with path [/jakartaDemo_war_exploded] threw exception [java.lang.NullPointerException: Cannot invoke "

Re: Issue in Struts 7.0.0 with tag

2025-04-16 Thread shankar sawate
Thank you for your response. I'm using NetBeans 17 as the IDE, with Java 21, and running the application on Tomcat 10.0.20. The issue occurs when I try to run the web application from within the IDE. NetBeans shows the following error when the issue occurs: The s:form tag declares that it accept

Re: Strange issue displaying numbers when in Arabic locale

2025-04-16 Thread Lukasz Lenart
pon., 7 kwi 2025 o 01:47 Zoran Avtarovski napisał(a): > > Thanks Lukasz, Uti, > > The issue indeed was how Java treated numbers after Java 8. > > After a inordinate amount of searching on how to change the solution was > to set the locale extension on how to treat numbers. > > Instead of just crea

Re: Issue in Struts 7.0.0 with tag

2025-04-16 Thread Lukasz Lenart
wt., 15 kwi 2025 o 09:57 shankar sawate napisał(a): > While migrating to Struts 7.0.0, I'm encountering an issue when using the > tag. Even though the tag is present like this > > jsp > <%%> > I’m getting the following warning or error: > > The s:form tag declares that it accepts dynamic attr

Re: Issue in Struts 7.0.0 with tag

2025-04-16 Thread shankar sawate
Please help us in this issue On Wed, 16 Apr, 2025, 10:17 pm Tellis, Wyatt, wrote: > I see similar warnings when using NetBeans to edit JSPs that contain > Struts tags. However, these JSPs seem to compile just fine. Does anyone > know what causes these warning messages? > > Wyatt > _

Re: Issue in Struts 7.0.0 with tag

2025-04-16 Thread Tellis, Wyatt
I see similar warnings when using NetBeans to edit JSPs that contain Struts tags. However, these JSPs seem to compile just fine. Does anyone know what causes these warning messages? Wyatt From: shankar sawate Sent: Monday, April 14, 2025 11:39 PM To: user@strut

RE: Request for Assistance with OWASP ZAP Vulnerabilities in Struts-Based Java Web Application

2025-04-16 Thread Nate Kerkhofs
: Shivam Agrahari Sent: Wednesday, 16 April 2025 13:36 To: Struts Users Mailing List Subject: Re: Request for Assistance with OWASP ZAP Vulnerabilities in Struts-Based Java Web Application Hi, The application is currently showing the following security vulnerabilities: Content security Policy (CSP

Re: Request for Assistance with OWASP ZAP Vulnerabilities in Struts-Based Java Web Application

2025-04-16 Thread Shivam Agrahari
Hi, The application is currently showing the following security vulnerabilities: Content security Policy (CSP) Header not set (3 instances)- GET: http://localhost:8080/favicon.ico GET: http://localhost:8080/favicon.test GET: http://localhost:8080/favicon.test\ Missing Anti-clickjackin

Re: Request for Assistance with OWASP ZAP Vulnerabilities in Struts-Based Java Web Application

2025-04-16 Thread Lukasz Lenart
śr., 16 kwi 2025 o 07:30 Shivam Agrahari napisał(a): > Could you please advise on how to resolve these issues? For your reference, I > have attached the WAR file of the test project along with a few relevant > pages. The best option is to read through OWASP recommendations PDFs and apply them o

  1   2   3   4   5   6   7   8   9   10   >