[ANN] Struts Annotations 2.0

2025-07-19 Thread Lukasz Lenart
The Apache Struts group is pleased to announce that Apache Struts Annotations version 2.0 is available as a “General Availability” release. The GA designation is our highest quality grade. The Apache Struts Annotations are used by the Apache Struts project to generate taglib info and generate tags

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 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: 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: 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: 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

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

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: 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

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.

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 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: 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: 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: 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 Lukasz Lenart
at each stage of > the interceptor stack to check the instance type of the request to see > where it changes. > > Z. > > > > On 13/5/2025 3:38 pm, Lukasz Lenart wrote: > > What else do you use? Spring, Tomcat? It looks like something is > > changing the type of Mu

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

Dojo DateTimePicker

2025-05-09 Thread Lukasz Lenart
wt., 6 maj 2025 o 21:22 shankar sawate napisał(a): > Do you have a new implementation of the Dojo DateTimePicker? If so, please > share how to implement it, as the old one is deprecated It's better to ask such a question in a new thread instead of mixing it into a totally different topic. The Str

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 :) >

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: 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-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: 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

Re: Strange issue displaying numbers when in Arabic locale

2025-04-05 Thread Lukasz Lenart
sob., 5 kwi 2025 o 02:47 Zoran Avtarovski napisał(a): > > > > > > This is likely intended behaviour but I would like to know how we stop > it from happening? You can try this https://stackoverflow.com/questions/77250075/struts-2-and-jdk-17-numbers-in-locale Based on user request I have imple

Re: Struts7: First Action with wrong locale

2025-04-05 Thread Lukasz Lenart
czw., 27 mar 2025 o 16:15 Ute Kaiser napisał(a): > I wrote a LocaleInterceptor to catch the language from request URL path, > either German or Englisch. Output contains language specific fields from > database. > Unfortunately, after server restart the first call has always German output. > > Wh

Re: Questions about migrating to Struts 7.0

2025-04-03 Thread Lukasz Lenart
czw., 3 kwi 2025 o 12:24 Shivam Agrahari napisał(a): > I have enabled dev mode and also log level to debug but there is no error > being displayed. Hard to guess with having no information from your side. Could you post your action with annotation on setters? Regards Łukasz ---

Re: Questions about migrating to Struts 7.0

2025-04-02 Thread Lukasz Lenart
śr., 2 kwi 2025 o 12:29 Shivam Agrahari napisał(a): > I am in the process of upgrading a Java application from Struts 6.7.4 to > Struts 7.0.3. I've made the necessary changes as per the migration guide, > such as updating javax to jakarta. However, when I submit the user ID and > password, they ar

Re: Re: Struts7 debug-tag with rendering problem

2025-04-01 Thread Lukasz Lenart
wt., 1 kwi 2025 o 12:09 Ute Kaiser napisał(a): > yes, I use Struts 7.0.3 > I suppose it is just a missing , that browser usually excuses for html > but not for my xml output. I've used the example app but I cannot find the issue, there is opening & closing tag, also I used W3C validator to che

Re: Struts7 debug-tag with rendering problem

2025-04-01 Thread Lukasz Lenart
Do you use Struts 7.0.3? I addressed some issues around in this version https://issues.apache.org/jira/browse/WW-5517 Also you can take a look on the Debugging example https://github.com/apache/struts-examples/tree/main/debugging-struts Cheers Lukasz czw., 27 mar 2025 o 10:25 Ute Kaiser napisa

Re: Issue with ServletActionContext.getRequest() returning null in JSP (Struts 7)

2025-03-31 Thread Lukasz Lenart
śr., 26 mar 2025 o 09:38 Lidin NT napisał(a): > Why is ServletActionContext.getRequest() returning null in JSP? Calling JSPs directly is a Bad Idea https://struts.apache.org/security/#never-expose-jsp-files-directly And calling JSPs directly means you skip the whole Action related machinery, wit

Re: RE: Struts7: looking for constant to set escapeHtml=false

2025-03-31 Thread Lukasz Lenart
pon., 24 mar 2025 o 20:04 Ute Kaiser napisał(a): > Thx Lukasz and Nate. > > I created MypropertyTag.java extending PropertyTag.java with my own method > setEscapeHtml but it was not called when the attribute escateHTML was not set > in jsp. > So I decided to go with Nate and to add the attribute

Re: Struts7: looking for constant to set escapeHtml=false

2025-03-22 Thread Lukasz Lenart
sob., 22 mar 2025 o 15:19 Ute Kaiser napisał(a): > > My application output is XML (not HTML), but German umlaute (ä,ö,ü) are > escaped for and let the XML output crash in browser. > Is there a way to configure e.g. struts.xml to set escapeHtml=false? > (instead of adding it to every single row i

Re: Japan IT week

2025-03-20 Thread Lukasz Lenart
wt., 18 mar 2025 o 00:37 Dave Newton napisał(a): > > I’ll miss you by three weeks 😭 Damn... maybe they will change the date :D Cheers Łukasz - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands,

Japan IT week

2025-03-17 Thread Lukasz Lenart
Hi, I'm probably going to participate in Japan IT week this spring in Tokyo, is anyone from the area who would like to meet there? As far as I know, the entry is free of charge. https://www.japan-it.jp/spring/en-gb.html Cheers Łukasz

Re: Conversion error message

2025-03-11 Thread Lukasz Lenart
pon., 10 mar 2025 o 18:10 Prasanth napisał(a): > com.opensymphony.xwork2.validator.annotations.ConversionErrorFieldValidator > Are we supposed to use this annotation for a method to override the > default validator? > This annotation only exposes any conversion errors for a given field. It doesn

Re: Questions about migrating to Struts 7.0

2025-03-11 Thread Lukasz Lenart
wt., 11 mar 2025 o 16:09 Nate Kerkhofs napisał(a): > One thing I'm wondering about is the StrutsParameter annotation that now > needs to be added to all getters and setters that need to be accessed from > the OGNL context. We have a number of Actions where we have getters and > setters for POJO

Re: Conversion error message

2025-03-10 Thread Lukasz Lenart
śr., 5 mar 2025 o 16:21 Prasanth napisał(a): > They are, see below. > > Ok, that should do the trick Should I not be using > com.opensymphony.xwork2.validator.annotations.ConversionErrorFieldValidator > to set the message. This is not the class in > com.opensymphony.xwork2.validator.validators w

Re: Passing parameters

2025-03-06 Thread Lukasz Lenart
czw., 6 mar 2025 o 10:55 Ed napisał(a): > I tested an example with struts 7.x > (https://github.com/apache/struts-examples/tree/main/control-tags) and > when edit `personBean` can't send to the form. If I have a string or a > map can send to the form, but object not. Thanks for pointing that out,

Re: [ANN] Apache Struts 6.7.4

2025-03-05 Thread Lukasz Lenart
śr., 5 mar 2025 o 18:50 Brunstein, David napisał(a): > > Hi Lukasz, > > The download page only shows the Struts version 7.0.3 > > https://struts.apache.org/download.cgi > > Would you please update the page with Struts 6.7.4? Done https://struts.apache.org/download.cgi#struts674 Cheers Łukasz -

[ANN] Apache Struts 6.7.4

2025-03-05 Thread Lukasz Lenart
The Apache Struts group is pleased to announce that Apache Struts version 6.7.4 is available as a “General Availability” release. The GA designation is our highest quality grade. The Apache Struts is an elegant, extensible framework for creating enterprise-ready Java web applications. The framewor

Re: Migrating from Struts 2.13.x to 7.0.3 with custom taglib issue

2025-03-05 Thread Lukasz Lenart
śr., 5 mar 2025 o 09:12 楊茗閏 napisał(a): > > Hi > I am immigrating Struts from 2.13.x to 7.0.3 for a very old project. > The project has its own taglib following the Struts style and uses > Freemarker for the template. > However, I am not able to get ${attributes} in the freemarker template. > I ha

Re: Conversion error message

2025-03-04 Thread Lukasz Lenart
wt., 4 mar 2025 o 20:35 Prasanth napisał(a): > I have the below line in the Action.properties file and it in the > WEB-INF/classes folder in the sample package as the actual action class. But > I am getting the standard error message rather than > the custom one. The file must be in the sam

Re: Conversion error message

2025-03-04 Thread Lukasz Lenart
pon., 3 mar 2025 o 23:32 Prasanth napisał(a): > > Hi, > > I have a custom message for conversion error as below. But the webpage is > showing this and the default struts message. How do I suppress the struts > default message? I am using Struts 6.7.0 > > @ConversionErrorFieldValidator(field

[ANN] Apache Struts 7.0.3

2025-03-03 Thread Lukasz Lenart
The Apache Struts group is pleased to announce that Apache Struts version 7.0.3 is available as a “General Availability” release. The GA designation is our highest quality grade. The Apache Struts is an elegant, extensible framework for creating enterprise-ready Java web applications. The framewor

Re: Understand usage of tag inside

2025-02-20 Thread Lukasz Lenart
I would use just "name" as well but I didn't check which options is faster in accessing ValueStack, yet it shouldn't matter IMHO śr., 19 lut 2025 o 12:35 M Huzaifah napisał(a): > > Hii, > > I prefered use the second one. Just use "name" > > Regards > > On Wed, Feb 19, 2025, 5:25 PM Murali Challa

Re: Unable to display the jsp - 404 Resource not found

2025-02-14 Thread Lukasz Lenart
pt., 14 lut 2025 o 09:01 Mahabir Gupta napisał(a): > Struts2 requires which Java minimum? Kindly advise. I already answered that, term Struts it's a synonym of Struts2 these days. Here is some explanation about the change in the naming https://cwiki.apache.org/confluence/pages/viewpage.action?pag

Re: Unable to display the jsp - 404 Resource not found

2025-02-13 Thread Lukasz Lenart
pt., 14 lut 2025 o 05:06 Mahabir Gupta napisał(a): > Is Struts2 compatible with Java 17. Kindly advise. Struts 6.x requires Java 8 as minimum, Struts 7.x requires Java 17 as minimum Cheers Łukasz - To unsubscribe, e-mail: user

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-02-13 Thread Lukasz Lenart
I would suggest learning Maven and use it to build Struts app https://struts.apache.org/getting-started/hello-world-using-struts2 śr., 12 lut 2025 o 07:46 Lukasz Lenart napisał(a): > > I just noticed we are polluting this thread with unrelated discussion, > please start a new thread t

Re: Unable to display the jsp - 404 Resource not found

2025-02-13 Thread Lukasz Lenart
I have no idea why it doesn't work, I don't use Eclipse so I cannot use your source code from Github. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Unable to display the jsp - 404 Resource not found

2025-02-12 Thread Lukasz Lenart
śr., 12 lut 2025 o 11:11 Mahabir Gupta napisał(a): > > http://localhost:8080/Struts2Starter/tutorials/getTutorial.action > > 404 Error. I assume it doesn't work. What happens when you open this link http://localhost:8080/Struts2Starter/index.jsp Do you see this https://github.com/MahabirGupta/Str

Re: Unable to display the jsp - 404 Resource not found

2025-02-12 Thread Lukasz Lenart
śr., 12 lut 2025 o 08:56 Mahabir Gupta napisał(a): > > Dear Lukasz, > > My current Struts2 project is also a very simple web app. > > http://localhost:8080/Struts2Starter/ > > It loads the index.jsp page. > > http://localhost:8080/Struts2Starter/tutorials/getTutorial Could you use this link http:

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-02-11 Thread Lukasz Lenart
82 > Kindly advise. Thank you. > > Regards > Mahabir > > On Wed, Feb 12, 2025 at 2:16 PM Lukasz Lenart > wrote: > > > śr., 12 lut 2025 o 05:17 Mahabir Gupta napisał(a): > > > > > > Dear Lukasz and Dave, > > > > > > The only deploy I a

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-02-11 Thread Lukasz Lenart
śr., 12 lut 2025 o 05:17 Mahabir Gupta napisał(a): > > Dear Lukasz and Dave, > > The only deploy I am seeing is the below and this is my github link > https://github.com/MahabirGupta/Struts2Starter. I noticed you have xwork-core-2.3.37.jar in your libs, please remove this JAR as Xwork classes ar

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-02-11 Thread Lukasz Lenart
pon., 10 lut 2025 o 04:06 Mahabir Gupta napisał(a): > > Dear Lukasz, > > I am using Struts2 using struts2-core-2.5.8.jar with Java 17. > > http://localhost:8080/manager/html > HTTP Status 404 – Not Found > -- > > *Type* Status Report > > *Message* The requested resource

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-02-09 Thread Lukasz Lenart
niedz., 9 lut 2025 o 12:23 Mahabir Gupta napisał(a): > Apache Tomcat/9.0.82 Do you use Struts 6.7.x or 7.0? Can you confirm the app has been deployed into Tomcat using Tomcat Manager App? Cheers Lukasz - To unsubscribe, e-mail:

Re: Probable bug in Struts 7.0.0

2025-02-01 Thread Lukasz Lenart
czw., 30 sty 2025 o 18:25 Bibonne Fabrice napisał(a): > > This is done for the issue : https://issues.apache.org/jira/browse/WW-5525 Thanks, I already prepared PR, yet I want to increase code coverage https://github.com/apache/struts/pull/1201 > As a workaround, I registered the instance to be u

Re: Probable bug in Struts 7.0.0

2025-01-29 Thread Lukasz Lenart
wt., 28 sty 2025 o 10:39 Bibonne Fabrice napisał(a): > First, thank you very much to all commiters for the new version of Struts > 7.0.0 : it is a great improvement for many apps in my firm. > > I think, there is maybe a bug inside the SecurityMemberAccess : it appears > when an ognl expression

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-01-29 Thread Lukasz Lenart
śr., 29 sty 2025 o 09:39 Murali Challa napisał(a): > And do we need to have below constant and any other constant to be added in > our struts.xml file? > > No, you don't need that, I messed up with Struts 7 Cheers Łukasz - T

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-01-29 Thread Lukasz Lenart
śr., 29 sty 2025 o 08:46 Murali Challa napisał(a): > Yes, this is what we are using in our application code. Same code we have > mentioned at beginning of this mailing. > > Just to keep it clear, our code looks as below. > > Action Class (extends ActionSupport): > > HttpSession session = ServletA

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-01-28 Thread Lukasz Lenart
ionSupport class and no annotations are used in it. > > Thanks, > Murali > > > > > > On Wed, 29 Jan, 2025, 12:00 Lukasz Lenart, wrote: > > > wt., 28 sty 2025 o 07:31 Murali Challa > > napisał(a): > > > > > > We get the availableItems

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-01-28 Thread Lukasz Lenart
wt., 28 sty 2025 o 07:31 Murali Challa napisał(a): > > We get the availableItems from session. > > That is the only difference in can see from your example. > > Can you try something link below and see if it works? > > > ${item.empid} > ${s.index} // index as well coming as empty > It works, b

Re: Re: Struts 2.5.x to 6.4.0

2025-01-28 Thread Lukasz Lenart
wt., 28 sty 2025 o 15:25 John Wilson napisał(a): > In the meantime, is it possible to create a custom TypeConverterCreator to > then call upon the createBean method and get this working? > > Maybe implement the TypeConverterCreator and redefine in struts.xml? Yes, it should be possible, implement

Re: Re: Struts 2.5.x to 6.4.0

2025-01-28 Thread Lukasz Lenart
wt., 28 sty 2025 o 14:22 John Wilson napisał(a): > I did go through the constants and update as required. We have the > typeconverters defined application wide using the > struts-conversion.properties. > > Although I’m wondering if this a bug related to > > https://issues.apache.org/jira/browse/WW

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-01-27 Thread Lukasz Lenart
pon., 27 sty 2025 o 08:41 Murali Challa napisał(a): > > Hi Lukasz, > > Yes, the values in session exist. > > We are able to iterate through session.list and while trying to print values > of session.list using EL, empty values are getting printed. > > EL is inside tag and we can see table with e

Re: Re: Struts 2.5.x to 6.4.0

2025-01-27 Thread Lukasz Lenart
pon., 27 sty 2025 o 15:31 John Wilson napisał(a): > > Yes. It should be using Spring to inject it as it did on 2.5.33. > > We have the struts2-spring-plugin which my understanding sets the object > factory in the web.xml to spring. I don't recall any major changes around Spring, maybe it's relate

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-01-26 Thread Lukasz Lenart
śr., 22 sty 2025 o 11:25 Murali Challa napisał(a): > Not sure why it is printing empty values while iterating through session > list. Could you confirm the value in session exists? Something like this: https://struts.apache.org/getting-started/http-session#accessing-http-session-objects-in-the-

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-01-26 Thread Lukasz Lenart
Hi Heikki, First of all, could you start a new thread as this one is about migrating from Struts 2.5.x to 6.x and your problem is related to migrating to Struts 7.x? Also could you share a full example of your Java & JSP code? Looks like the and are connected based on the used ${subject} variabl

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-01-26 Thread Lukasz Lenart
These kinds of issues are very hard to debug or investigate, so it would be good to prepare a small demo app reproducing the issue. You can use one of the struts-examples app as a starting point https://github.com/apache/struts-examples/ Thanks in advance Łukasz -

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-01-25 Thread Lukasz Lenart
czw., 23 sty 2025 o 22:37 Heikki Hyyrö napisał(a): > > Dear all, > > I am having somewhat similar problems after upgrading from 6.3.0.2 to > 7.0.0. It has become very difficult to refer to variables inside JSP code! > > The first symptom I inspected was quite identical to Murali's problem: > refer

Re: Struts 2.5.x to 6.4.0

2025-01-25 Thread Lukasz Lenart
czw., 23 sty 2025 o 17:51 jw1474674 napisał(a): > Hi, I’m facing issues upgrading struts versions. > In particular with a custom StrutsTypeConverter. > > The custom converter has a @PersistenceContext annotation for the > EntityManager which used to work. > > The entityManager is used to find clas

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-01-22 Thread Lukasz Lenart
śr., 22 sty 2025 o 11:25 Murali Challa napisał(a): > Pure EL is working fine. > > Not sure why it is printing empty values while iterating through session > list. One more thing, try this: // working ${id} // Not working if works, something has been broken in the framework Cheers Łukasz

Re: JSP EL not working post strutsbmigration from 2.5.x to 6.7.0

2025-01-22 Thread Lukasz Lenart
śr., 22 sty 2025 o 09:55 Murali Challa napisał(a): > > Hi, > > I'm trying to migrate application from Struts 2.5.33 to struts 6.7.0 but > JSP EL is not working post migration. > > ${obj.prop} giving empty value. > > Can someone suggest on this? > > Servelt api 3.1 will work only on WAS 9? > > If y

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-01-22 Thread Lukasz Lenart
śr., 22 sty 2025 o 09:55 Murali Challa napisał(a): > > Hi, > > We are migrating our application from struts2-core 2.5.33 to 6.7.0. > > Post migration, we are facing issues while populating bean values in > session. > > ${} is printing null values. Seems the EL is not working post 6.x migration. >

Re: Struts 6.7.0 and xwork2 packages

2025-01-20 Thread Lukasz Lenart
pensymphony.xwork2.ActionSupport. What would be the suggested way > > to do that? Add xwork separately as a maven independence? The newest > > version seems to be from 2009, is that still ok? > > > > Best regards > > Heikki > > > > Lukasz Lenart kirjoitti 9.1.202

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-01-13 Thread Lukasz Lenart
I don't recall changes in this area, only this one but it was in Struts 2.3 https://issues.apache.org/jira/browse/WW-4073 niedz., 12 sty 2025 o 04:22 Murali Challa napisał(a): > > Hi, > > We are migrating our application from struts2-core 2.5.33 to 6.7.0. > > Post migration, we are facing issues

Re: Struts 6.7.0 and xwork2 packages

2025-01-09 Thread Lukasz Lenart
śr., 8 sty 2025 o 21:26 Tellis, Wyatt napisał(a): > I recently upgraded my app to 6.7.0 and saw that many classes are deprecated > due to the renaming of the xwork2 packages. I tried changing the imports to > use the org.apache.struts2 equivalents, but my application no longer works. > Everyth

Re: Struts 7.0.0 - JSP rendering is taking 3X time compare to struts 6.3.0.2

2024-12-26 Thread Lukasz Lenart
Could you prepare a sample app instead of sending your Java & JSP code? I already tried to reproduce your problem yet using Struts tags and everything is perfectly fine. Also why do you use instead of ? Cheers Lukasz czw., 26 gru 2024 o 11:08 Dipak Tank napisał(a): > > > Hi > > After upgradin

[ANN] Apache Struts 7.0.0 GA

2024-12-19 Thread Lukasz Lenart
The Apache Struts group is pleased to announce that Apache Struts version 7.0.0 is available as a “General Availability” release. The GA designation is our highest quality grade. The Apache Struts is an elegant, extensible framework for creating enterprise-ready Java web applications. The framewor

Re: Struts 7 Release Date (GA)

2024-12-18 Thread Lukasz Lenart
śr., 18 gru 2024 o 08:30 Abhinandan Agarwal napisał(a): > > Hi, > Wanted to know a tentative date for the release of Struts 7 GA. It's under Vote now https://lists.apache.org/thread/4w015n6gdcpy68wng1knr4qgokbyskz3 Cheers Łukasz -

[ANN] CVE-2024-53677 File upload logic is flawed

2024-12-10 Thread Lukasz Lenart
The Apache Struts group recommends upgrading to Apache Struts version 6.4.0 at least and migrating to the new file upload mechanism [1] to mitigate potential security vulnerability when using deprecated FileUploadInterceptor [2]. [1] https://struts.apache.org/core-developers/action-file-upload [2]

Re: Struts 6.7.0 and JRebel issue

2024-12-09 Thread Lukasz Lenart
wt., 10 gru 2024 o 00:02 David Brunstein napisał(a): > > Hi, > > My Team has found the following issue. > > JRebel no longer seems to work with the latest version of Struts, 6.7.0. > When we try to hit a page in our app, we immediately get the following > error: > > > > JRebel: Class 'com.opensymp

Re: Re: Struts 7 release rough timelines

2024-12-06 Thread Lukasz Lenart
pt., 6 gru 2024 o 01:52 Rai de Guzman napisał(a): > Any update on the timeline for Struts 7 release? We are ready to prepare a new release, the only blocker is this one https://issues.apache.org/jira/browse/INFRA-26325 Cheers Lukasz -

[ANN] Apache Struts 6.7.0

2024-11-29 Thread Lukasz Lenart
The Apache Struts group is pleased to announce that Apache Struts version 6.7.0 is available as a “General Availability” release. The GA designation is our highest quality grade. The Apache Struts is an elegant, extensible framework for creating enterprise-ready Java web applications. The framewor

Re: Struts 7 release

2024-11-17 Thread Lukasz Lenart
pt., 15 lis 2024 o 11:43 Sai Charan Teja Pratti napisał(a): > > Hi everyone, > > We are aware that the latest available test build for Struts-7 is M10. But, > test builds are not supposed to be used in production. You can always use the milestone version to migrate your current code and be ready

Re: Pass opener (and target) to popop with window.open

2024-11-07 Thread Lukasz Lenart
śr., 6 lis 2024 o 15:48 Ragnar Rüütel napisał(a): > I'm trying to access windows.opener.document from popup (and windows.name) > but unfortunately it doesn't pass the opener to popup. > This feature used to work on webwork 2.2.* version. > Has this feature been removed or do I need to configure s

Re: Struts 7 release rough timelines

2024-11-07 Thread Lukasz Lenart
You can start working on migration based on the latest M10 version of Struts 7. There is one small bug which blocks release, once addressed we should be ready to go. pt., 1 lis 2024 o 06:41 Tanmay Majumdar napisał(a): > > Hi Everyone, > > One of our applications uses Struts with WildFly 17. Now W

Re: URL tag question

2024-10-30 Thread Lukasz Lenart
śr., 30 paź 2024 o 16:32 Matt Williams napisał(a): > > Thanks Nate! I overlooked that! > This does work! > > > name="myData" value="%{#myDataList}" /> > Feel free to edit the page and add your example, PRs are welcome :) Cheers Łukasz --

Re: Strtus 6 EOL

2024-10-30 Thread Lukasz Lenart
pon., 28 paź 2024 o 20:58 David Brunstein napisał(a): > We see that the Struts version 7 is in the testing phase and will release > GA soon. > > We are starting to think about the Struts 6 EOL date. > Do you have an idea when that might be? Two years? Maybe five? No exact plans, yet I wouldn't ex

Re: Struts 7: error when "s:action" is used on jsp page and jsp is invoked directly in browser

2024-10-20 Thread Lukasz Lenart
niedz., 20 paź 2024 o 11:14 Wolfgang Knauf napisał(a): > > OK, I see. Thanks for the clarification. > > Is there any chance to improve the error message or detect this > situation? You wrote that this is a recommendation, and it worked with > the old version. But the exception does not point to an

Re: Struts 7: error when "s:action" is used on jsp page and jsp is invoked directly in browser

2024-10-20 Thread Lukasz Lenart
sob., 19 paź 2024 o 15:18 Wolfgang Knauf napisał(a): > I have a "index.jsp" and invoke an action using "s:action" tag, then render > data from this action. In the browser I navigate to this jsp direcly > ("http://localhost/index.jsp"; instead of browsing to ".../index.action"). This is against

  1   2   3   4   5   6   7   8   9   10   >