Re: Security Issue - 2.3.35

2021-09-02 Thread Lukasz Lenart
wt., 31 sie 2021 o 17:36 Gopal, Siva Prakash napisał(a): > > Hi Team, > > We are using below version of struts. Is there any security issue to upgrade > it to next version. > > struts2-core-2.3.35 As far I know no, you can always check this page https://struts.apache.org/releases.html And be

Re: How to set up the conditions to test web pages for HTTP status codes 403, 404, 500, 503

2021-06-21 Thread Lukasz Lenart
pt., 18 cze 2021 o 14:11 albert kao napisał(a): > > Following "Exception mapping" at: > https://struts.apache.org/getting-started/exception-handling.html > > Something like: > public class HttpIOException extends Exception { > private static final long serialVersionUID = -4261703341L; > > public

Re: How to set up the conditions to test web pages for HTTP status codes 403, 404, 500, 503

2021-06-17 Thread Lukasz Lenart
czw., 17 cze 2021 o 13:24 albert kao napisał(a): > > I developed a web application with Java (Struts 2) and Web Experience > Toolkit (WET - https://github.com/wet-boew/wet-boew), which is running on > the WebLogic 12c server. > When any one of the HTTP status codes 403, 404, 500, 503 occurs, my

Re: s:url s:a and s:text

2021-06-09 Thread Lukasz Lenart
czw., 10 cze 2021 o 02:07 albert kao napisał(a): > > How to use s:url s:a and s:text together? > I tried this jsp but it did not work because some s:text did not get > substituted. > > > "> > > > > .properties file > comp.href=https://www.mycomp.com/client.html#x1 > browser.window.title=Title >

Re: Struts Upgrade

2021-06-02 Thread Lukasz Lenart
wt., 1 cze 2021 o 16:38 Jasmine Kaur napisał(a): > we are able to run the project. Facing issue while clicking the buttons, > having issue with cssClass. > > Do you guys have any idea? What kind of error? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: Struts Upgrade

2021-05-27 Thread Lukasz Lenart
pt., 28 maj 2021 o 02:15 Jasmine Kaur napisał(a): > We need to upgrade our project from struts version 2.2.3 to 2.5, kindly let > us know the steps. Please start with [1] and in case of other issues ask the questions here [1]

[ANN] Apache Struts Security Impact Levels

2021-02-20 Thread Lukasz Lenart
The Apache Struts Security Team has prepared Security Impact Levels and updated the following Security Bulletins to match the levels. Any new Security Bulletin will be published with a proper level of the Security Impact Levels. Security Impact Levels

Re: NPE using OpenSessionBackgroundProcess class

2021-01-26 Thread Lukasz Lenart
wt., 26 sty 2021 o 13:45 Burton Rhodes napisał(a): > > Lukasz - > Sorry if this is a dumb question, but where and how do I call the > readObject() method that you suggested? It is used by JVM when an object is deserialized https://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html

Re: NPE using OpenSessionBackgroundProcess class

2021-01-25 Thread Lukasz Lenart
pon., 25 sty 2021 o 19:52 Burton Rhodes napisał(a): > public class OpenSessionBackgroundProcess extends BackgroundProcess { BackgroundProcess is marked as Serializable so container can temporarily store it on disk > private Object lock = new Object(); // used for synchronization I would mark

Re: Validate URL or email with internationalized domain name (IDN)

2021-01-25 Thread Lukasz Lenart
pon., 25 sty 2021 o 12:38 Guenter Paul napisał(a): > DWR valdiation looks fine. Is there any small example? If not, I will try it > by myself and try to use it. After I would try to use URL- and > EMail-Validation. You can check the Showcase app, there should be an example how to use it. You

Re: NPE using OpenSessionBackgroundProcess class

2021-01-22 Thread Lukasz Lenart
czw., 21 sty 2021 o 18:56 Burton Rhodes napisał(a): > synchronized (lock) { <-- NPE is here How is this lock defined? Is it a serializable class? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: Hard limit of number of form elements submitted to an action?

2021-01-20 Thread Lukasz Lenart
wt., 19 sty 2021 o 17:34 Nikolay Ivanchev napisał(a): > > Hi All > > Is there a hard limit of elements in a form when processed by Struts2 > We have a form with 11000 chekcboxes and when we submit it, only 5000 > checkboxes are sbumitted > > Is this a configurable parameter? If you missed the

Re: Validate URL or email with internationalized domain name (IDN)

2021-01-20 Thread Lukasz Lenart
niedz., 17 sty 2021 o 15:18 Guenter Paul napisał(a):> > I'm not sure. Perhaps a solution with Ajax is possible? Maybe we should drop support for Client Side Validation in case of EmailValidator - just in case of pure JS. The Ajax/DWR valdiation should be used instead.

Re: Hard limit of number of form elements submitted to an action?

2021-01-19 Thread Lukasz Lenart
Please use user@ mailing list wt., 19 sty 2021 o 16:51 Nikolay Ivanchev napisał(a): > Is there a hard limit of elements in a form when processed by Struts2 > We have a form with 11000 chekcboxes and when we submit it, only 5000 > checkboxes are sbumitted > > Is this a configurable parameter?

Re: Validate URL or email with internationalized domain name (IDN)

2021-01-15 Thread Lukasz Lenart
pt., 15 sty 2021 o 16:21 Guenter Paul napisał(a): > > OK, client validation is a problem, that's true. I don't use it, but yes, > it's usefull. > > I found punycode for that: > https://github.com/bestiejs/punycode.js > > It's MIT-licence, I'm not sure we can use it for standard. > > I'm not

Re: Validate URL or email with internationalized domain name (IDN)

2021-01-14 Thread Lukasz Lenart
czw., 14 sty 2021 o 16:25 Günter Paul napisał(a): > > In Germany we can use domaine-names like "münchen.de". > The struts validators URLValidator and EmailIdnValidator can't handle such > name with umlaut. > The domaine is valide but not for the validator. > > Is it possible to change this

Re: Opting action method back into validation

2020-12-09 Thread Lukasz Lenart
wt., 8 gru 2020 o 12:39 Paul Zepernick napisał(a): > > It is an existing project that has hundreds of action classes and is > currently configured by the struts rest plug-in to ignore the show method for > validation. I know I can update the configuration to remove the exclusion, > but many

Re: Opting action method back into validation

2020-12-07 Thread Lukasz Lenart
pon., 7 gru 2020 o 15:24 Paul Zepernick napisał(a): > Is there any way to take a method that has been excluded from validation > in the configuration and turn it back on for a single action? For example, > I am using the REST plugin which excludes the show() method from the > validation. 99%

[ANN] [SECURITY] Potential RCE when using forced evaluation - CVE-2020-17530

2020-12-07 Thread Lukasz Lenart
Forced OGNL evaluation, when evaluated on raw user input in tag attributes, may lead to remote code execution. Problem Some of the tag's attributes could perform a double evaluation if a developer applied forced OGNL evaluation by using the %{...} syntax. Using forced OGNL evaluation on untrusted

[ANN] Struts 2.5.26

2020-12-06 Thread Lukasz Lenart
The Apache Struts group is pleased to announce that Struts 2.5.26 is available as a “General Availability” release. The GA designation is our highest quality grade. https://struts.apache.org/announce.html#a20201206 Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready

Re: URI too long error when using ExecuteAndWait interceptor

2020-11-30 Thread Lukasz Lenart
I thought a bit about this problem and to be honest I didn't find a better solution. It would require some selective logic which params include, e.g: Would that work for you? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ sob., 21 lis 2020 o 16:21 Burton Rhodes napisał(a): >

Re: NPE when running unit test with struts rest plugin

2020-11-09 Thread Lukasz Lenart
pon., 9 lis 2020 o 14:38 Paul Zepernick napisał(a): > > Thank you very much, this has resolved the issue! I have created a ticket in > Jira. > > https://issues.apache.org/jira/browse/WW-5095 Great, thanks a lot! Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: Struts form bean behaviour changes after 2.5.22

2020-11-08 Thread Lukasz Lenart
pon., 9 lis 2020 o 04:53 Gokul Raj napisał(a): > > I have upgraded from 2.3 to 2.5. Also, It is not occurring frequently. Did you review the migration guide? https://cwiki.apache.org/confluence/display/WW/Struts+2.3+to+2.5+migration#Struts2.3to2.5migration-NewLocaleawareconversionlogic This is

Re: NPE when running unit test with struts rest plugin

2020-11-07 Thread Lukasz Lenart
śr., 4 lis 2020 o 17:29 Paul Zepernick napisał(a): > I have posted an example project that reproduces the error in the junit test > > https://github.com/zepernick/struts25-rest-junit I think I have found the problem, mapping is not set in getActionProxy(), you can fix it by overriding it like

Re: Struts form bean behaviour changes after 2.5.22

2020-11-07 Thread Lukasz Lenart
sob., 7 lis 2020 o 11:21 Gokul Raj napisał(a): > After upgrade 2.5.22 we are facing a kind of issue, form beans remove > decimal points. Does anyone face such an issue? Could you provide more details? From which version did you upgrade to 2.5.22? Regards -- Łukasz + 48 606 323 122

Re: NPE when running unit test with struts rest plugin

2020-11-03 Thread Lukasz Lenart
wt., 3 lis 2020 o 13:24 Paul Zepernick napisał(a): > Yes, I am using the struts2-junit plugin and extending > StrutsSpringJUnit4TestCase from the plugin. Would you mind preparing a small example and put it on Github? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: NPE when running unit test with struts rest plugin

2020-11-02 Thread Lukasz Lenart
pon., 2 lis 2020 o 14:48 Paul Zepernick napisał(a): > Struts: 5.2.25 > > Plugins: struts2-rest, struts2-spring, struts2-convention > junit 4 > > Did you try to use struts2-junit plugin and based your tests on StrutsJUnit4TestCase? https://struts.apache.org/plugins/junit/ Regards -- Łukasz +

Re: Issue in migration from struts2.3.35 to struts2.5.22

2020-11-01 Thread Lukasz Lenart
niedz., 1 lis 2020 o 14:25 Peer Mohammad napisał(a): > > I have not used Xwork, index.jsp has name="cheetta.login" flush="true"/> and cheetta.login is given in struts.xml > with action class.This setup is working last 7 years on struts2.3.35 . You are not using Xwork directly but you have

Re: Issue in migration from struts2.3.35 to struts2.5.22

2020-10-29 Thread Lukasz Lenart
czw., 29 paź 2020 o 11:24 Peer Mohammad napisał(a): > list of jars for Strust2.5.22 > > struts2-core 2.5.22 > freemarker -2.3.30 > xwork-core -2.3.37 As I said, this is not needed, XWork was merged into Struts Core, you are duplicating classes now > Caused by: There is no ActionContext for

Re: Issue in migration from struts2.3.35 to struts2.5.22

2020-10-28 Thread Lukasz Lenart
śr., 28 paź 2020 o 11:55 Peer Mohammad napisał(a): > Please find the web.xml and struts.xml file. I have observed that many > library classes are not available in strut2-tiles-plugin file and xwork some > package in struts-core-2.5.22 compare to struts2.3.35. Not sure what do you mean by that?

Re: ASM version

2020-10-06 Thread Lukasz Lenart
wt., 6 paź 2020 o 14:35 Tamás Barta napisał(a): > > Hi, > > I would like to ask if you are going to update used asm library version to > 8.* > Latest struts convention plugin and cxf libraries depends on different asm > versions. Sure, please register a ticket in JIRA and we will address that in

Re: Issue in migration from struts2.3.35 to struts2.5.22

2020-10-01 Thread Lukasz Lenart
czw., 1 paź 2020 o 22:00 Peer Mohammad napisał(a): > I have followed the above mentioned guide and i had removed the XWork as > well,But error remains the same. I am trying last 45 days to resolve this > issue but able to resolve yet. Any suggestion/guidance will be appreciable. Can you share

[ANN] Struts 2.5.25

2020-09-28 Thread Lukasz Lenart
The Apache Struts group is pleased to announce that Struts 2.5.25 is available as a “General Availability” release. The GA designation is our highest quality grade. https://struts.apache.org/announce.html#a20200928 Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready

Re: Issue in migration from struts2.3.35 to struts2.5.22

2020-09-28 Thread Lukasz Lenart
pon., 28 wrz 2020 o 12:35 Peer Mohammad napisał(a): > > Hi Team, > > I am getting error while migrating Struts2.3.35 to Struts2.5.22 as "There is > no ActionContext for current request! - [unknown location]" > console log: ERROR StrutsTilesLocaleResolver cannot obtain HttpServletRequest > from

Re: security : context relative URL(s)

2020-09-14 Thread Lukasz Lenart
sob., 5 wrz 2020 o 19:44 Zahid Rahman napisał(a): > > Hi, > > Can I apply these same security features in struts2 which were applied in > struts1 > now that the use of web.xml TAGS is discouraged in favour of annotations. > > > *example deployment descriptor * >

Re: TilesPlugin of Struts2 is not loaded in existing Struts1 project

2020-09-07 Thread Lukasz Lenart
śr., 2 wrz 2020 o 12:33 Natta Wang napisał(a): > > I'm doing on migrating Struts1 to Struts2 and one of component is TilesPlugin > of Struts1 version. I've read the instruction of Struts2 tiles-pluing > implementation and follow those steps, but found it is not loaded the > configure as I

Re: Struts 1 -> Struts 2 migration session parameters not found

2020-08-27 Thread Lukasz Lenart
czw., 27 sie 2020 o 13:17 Natta Wang napisał(a): > > I start to migrate from Struts 1 to Struts 2 and found a problem that I want > to ask for help with the session. > > In Struts 1 web.xml, I have a Filter class that maps to servlet and when it > be called, it will set a parameter with an

Re: CVE-2019-0233 is Struts v1 vulnerable?

2020-08-21 Thread Lukasz Lenart
pt., 21 sie 2020 o 11:30 Rayne Anderson napisał(a): > > I know that Apache Struts File upload CVE-2019-0233 applies to Struts v2. > Does the CVE apply to Struts v1.3.8? I would say no as these are totally different frameworks but we didn't test Struts 1.3.8 against this vulnerability as Struts 1

Re: Status of 2.5.23?

2020-08-17 Thread Lukasz Lenart
pon., 17 sie 2020 o 20:53 Tellis, Wyatt napisał(a): > > NP. Do you have an ETA for when 2.5.24 will be released? In a few weeks, just one issue left and I will be able to prepare a test build. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: Status of 2.5.23?

2020-08-17 Thread Lukasz Lenart
niedz., 16 sie 2020 o 04:47 Tellis, Wyatt napisał(a): > Can this be pushed to Maven central? Sorry for the mess, Struts 2.5.23 was not accepted as some bugs were discovered in the test build - those were already addressed and soon I will prepare a new 2.5.24 test build. Regards -- Łukasz + 48

Re: Action path prefix rules?

2020-08-14 Thread Lukasz Lenart
pt., 14 sie 2020 o 10:48 Heikki Hyyrö napisał(a): > I am a bit confused about the rules concerning mapping URL paths to > actions. Let's say that I have a Struts application running at > example.com with the app name "myApp". Then the usual path to access a > Struts action named "foo" would

Re: Struts 2.5.23

2020-07-06 Thread Lukasz Lenart
niedz., 5 lip 2020 o 08:18 Yasser Zamani napisał(a): > > Hi thanks for the test build! > > I think because mvnw cannot accept -D... jvm options directly. Interesting ... I will double check that Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: Struts 2.5.23

2020-07-02 Thread Lukasz Lenart
+ 48 606 323 122 http://www.lenart.org.pl/ pt., 3 lip 2020 o 07:28 Lukasz Lenart napisał(a): > > czw., 2 lip 2020 o 13:40 Lukasz Lenart napisał(a): > > > > Ha! > > > > This one helped > > https://stackoverflow.com/questions/31684855/java-ssl-exception-protoc

Re: Struts 2.5.23

2020-07-02 Thread Lukasz Lenart
czw., 2 lip 2020 o 13:40 Lukasz Lenart napisał(a): > > Ha! > > This one helped > https://stackoverflow.com/questions/31684855/java-ssl-exception-protocol-version-when-trying-to-use-httpclient-to-log-into-a > > and using TLSv1 :D ech... it didn't, I was running JDK8 instead

Re: Struts 2.5.23

2020-07-02 Thread Lukasz Lenart
Ha! This one helped https://stackoverflow.com/questions/31684855/java-ssl-exception-protocol-version-when-trying-to-use-httpclient-to-log-into-a and using TLSv1 :D czw., 2 lip 2020 o 13:36 Lukasz Lenart napisał(a): > > czw., 2 lip 2020 o 11:15 mar...@payer.he-hosting.de > napisał(a):

Re: Struts 2.5.23

2020-07-02 Thread Lukasz Lenart
czw., 2 lip 2020 o 11:15 mar...@payer.he-hosting.de napisał(a): > just a quick guess - use Java 8 or look here > https://stackoverflow.com/questions/50824789/why-am-i-getting-received-fatal-alert-protocol-version-or-peer-not-authentic. I already tried that hint from SO, but it didn't help :( I

Re: Struts 2.5.23

2020-07-02 Thread Lukasz Lenart
Hi, I've been trying to prepare a new release of Struts 2.5 but constantly getting [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy (default-deploy) on project struts2-bom: Failed to deploy artifacts: Could not transfer artifact

Re: SMI allowed methods not working for struts 2.5.17

2020-06-02 Thread Lukasz Lenart
wt., 2 cze 2020 o 09:05 Sailaja S napisał(a): > When I set Dynamic method invocation to false allowed methods is not > working. Should allowed-methods work with SMI? Those two different things, you can enable DMI but you still need to define allowed methods. > How do I invoke multiple methods

Re: OSGi support

2020-05-11 Thread Lukasz Lenart
sob., 9 maj 2020 o 19:17 James Chaplin napisał(a): > There is probably some value in keeping the OSGi plugin around, at least > until it becomes a problem to maintain. Even with JDK9+ modules, there still > seem to be use cases for OSGi (a general interest blog post >

Re: Struts 2.5.23

2020-05-11 Thread Lukasz Lenart
sob., 9 maj 2020 o 19:13 James Chaplin napisał(a): > The only other possible inclusion I could think of after a quick look at > open bugs might be a fix for WW-5002. It was reported as an issue for 2.5.18 > and the last comment indicated it was probably a bug. I tried to figure out

Re: Issue adding filter to struts2-archetype-starter project

2020-05-04 Thread Lukasz Lenart
Do you see any errors while you starting Tomcat? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail:

Struts 2.5.23

2020-05-03 Thread Lukasz Lenart
Hi, I'm going to prepare a test build of Struts 2.5.23 which covers those 4 issues. Any other issue should be addressed? https://issues.apache.org/jira/issues/?jql=project%20%3D%20WW%20AND%20fixVersion%20%3D%202.5.23 Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: OSGi support

2020-04-20 Thread Lukasz Lenart
pon., 20 kwi 2020 o 16:53 napisał(a): > >Yeah, I thought about that. Just wondering who widely this > >functionality is used and maybe doesn't make sense to support it. > > As all the buzz is about microservices these days my gut feeling is that OSGi > is pretty much dead. I have the same, even

Re: struts 1 to struts 2 migration , virtual form replacement query

2020-04-17 Thread Lukasz Lenart
pt., 17 kwi 2020 o 13:42 Kishore Venkatesh napisał(a): > > Thanks for the response. After I create an action with setters and getters , > how can I use this action in javascript functions. Not sure if I understand, what do you want to achieve? Maybe some example? Regards -- Łukasz + 48 606

Re: OSGi support

2020-04-15 Thread Lukasz Lenart
śr., 15 kwi 2020 o 10:24 M Huzaifah napisał(a): > > Hii Lucas, > > Personally, i am not use OSGi. There is plan to remove this in struts? Yeah, I thought about that. Just wondering who widely this functionality is used and maybe doesn't make sense to support it. Regards -- Łukasz + 48 606 323

OSGi support

2020-04-14 Thread Lukasz Lenart
Hi, Does anybody is using OSGi support in Struts these days? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail:

Re: struts 1 to struts 2 migration , virtual form replacement query

2020-04-14 Thread Lukasz Lenart
wt., 14 kwi 2020 o 12:36 Kishore Venkatesh napisał(a): > I'm migrating an application from struts 1 to struts 2, I have some forms and > form beans defined in struts-config.xml . How do I map these into struts 2. > I know about struts 2 forms , and mapping form to user bean . My question how

Re: Strtus2-jasper plugin rendering

2020-04-12 Thread Lukasz Lenart
sob., 11 kwi 2020 o 11:35 M Huzaifah napisał(a): > Dear Lucas and Other, > > i am generate PDF from struts using jasper plugin. i’ve found something > weird. i design my report using Jasper Report Studio (version 6.12.0 the > newest one) and then add text with bold and italic style, then preview

Re: How to reference a struts constant from within struts.xml?

2020-04-10 Thread Lukasz Lenart
pt., 10 kwi 2020 o 15:51 Burton Rhodes napisał(a): > > Done. The JIRA ticket is located here: > https://issues.apache.org/jira/browse/WW-5066 Thanks a lot! Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To

Re: How to reference a struts constant from within struts.xml?

2020-04-09 Thread Lukasz Lenart
czw., 9 kwi 2020 o 16:58 Burton Rhodes napisał(a): > > Is it possible to reference a Struts constant from within the same file? > In other words, I would like to define a constant inside my struts.xml file > and then reference that constant further down in the file. > > For example: > >

Re: Tiles upgrade Path

2020-03-31 Thread Lukasz Lenart
pon., 30 mar 2020 o 16:16 amit vijayvargee napisał(a): > Whilst building the struts 2.5.20 with struts tiles plug-in, I'm getting > apache tiles 3.0.8 version jars. As you aware of apache tiles project is out > of support now. Is there any future plan to remove these dependency from > struts?

Re: Tiles upgrade Path

2020-03-23 Thread Lukasz Lenart
pon., 23 mar 2020 o 10:41 amit vijayvargee napisał(a): > We are currently looking to migrate struts 2.3 and tiles 2 to newer version. > As per the security scan, existing tiles (2.0) version is deprecated and > reported some vulnerability in it. > Could you please help to answer following

Re: [S2] getOutputStream() has already been called error?

2020-03-15 Thread Lukasz Lenart
wt., 10 mar 2020 o 15:35 Burton Rhodes napisał(a): > > > > > > true > ERROR > I would move your "exceptionInterceptor" to be the very first interceptor in the

Re: OGNL in struts tag

2020-02-23 Thread Lukasz Lenart
Ach. my bad, I just checked how "name" is resolved in "UIBean" instead of analysing it into deep and I messed up things with "value" attribute, my explanation below niedz., 23 lut 2020 o 23:06 John Bush napisał(a): > > This works because of %{} and "a" was pushed onto the top of

Re: OGNL in struts tag

2020-02-23 Thread Lukasz Lenart
pt., 21 lut 2020 o 04:05 M Huzaifah napisał(a): > > > > the jsp has error: > > Struts Problem Report > > Struts has detected an unhandled exception: > > Messages: > /pages/common/genericform/genericMain.jsp (line: 165, column: 24) According > to TLD or attribute directive in tag file,

Re: OGNL in struts tag

2020-02-20 Thread Lukasz Lenart
wt., 18 lut 2020 o 17:04 M Huzaifah napisał(a): > Thank you Lucas, my goal is render the struts tag based on list of column > name that i've set before. So i have to iterate the list of column using > jstl than put the "name" on attribut name in struts tag. From here, i > think i miss

Re: OGNL in struts tag

2020-02-18 Thread Lukasz Lenart
wt., 18 lut 2020 o 05:22 M Huzaifah napisał(a): > I've looking for solution how to create struts2 tag could generate > dynamically. This is my code: > > > > You shouldn't mix Struts and non-Struts tags, this is a bad idea. Why don't you use here?

Re: S2.5.22 custom StrutsTypeConverter values parameter has changed?

2019-12-29 Thread Lukasz Lenart
niedz., 29 gru 2019 o 20:38 Burton Rhodes napisał(a): > > It appears I needed to change my tag to the following (removing the null > check from within the getText() method): > > value="%{xaction.splitAssistant != null > ? getText('format.percent',{xaction.splitAssistant * 100}) : ''}" /> I

Re: S2.5.22 custom StrutsTypeConverter values parameter has changed?

2019-12-29 Thread Lukasz Lenart
niedz., 29 gru 2019 o 19:34 Burton Rhodes napisał(a): > > After upgrading to v2.5.22 my custom StrutsTypeConverters are having issues > when the passed html form parameter is empty (or null). > > Specifically in my overridden convertFromString(context, values, toClass) > method, the values

Re: convention plugin Issue

2019-12-18 Thread Lukasz Lenart
Feel free to register a ticket in JIRA, but this is something low priority rather. Regards Lukasz sob., 7 gru 2019 o 12:58 Zahid Rahman napisał(a): > > I think the convention plugin should perform a validation a check for the > presence of multiple same class names within different > package

Re: Java Singleton , Framework Design Patterns

2019-12-11 Thread Lukasz Lenart
czw., 12 gru 2019 o 06:13 Zahid Rahman napisał(a): > So my point is I have not been able to find accurate information , if some > one could furnish me a Java language specification or recommend a book > which accurately describes these I would be grateful. Start with Gang of Four

Re: struts2.5.22 + tiles3.0.8 + commons-beanutils to version 1.9.4

2019-12-10 Thread Lukasz Lenart
wt., 10 gru 2019 o 15:29 Emi napisał(a): > > > org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG > > > /WEB-INF/tiles/menu/tiles-menu.xml > > Please use "org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG" as this has

Re: struts2.5.22 + tiles3.0.8 + commons-beanutils to version 1.9.4

2019-12-10 Thread Lukasz Lenart
wt., 10 gru 2019 o 14:15 napisał(a): > > Why do you use "CompleteAutoloadTilesListener" ? And as far I see > > everything works in the Showcase app > > My application based on tiles3 + struts. As suggested by > https://struts.apache.org/plugins/tiles-3/ , > CompleteAutoloadTilesListener is used.

Re: struts2.5.22 + tiles3.0.8 + commons-beanutils to version 1.9.4

2019-12-09 Thread Lukasz Lenart
pon., 9 gru 2019 o 16:55 napisał(a): > > Hello, > > Based on struts2.5.22 + tiles3.0.8 + commons-beanutils to version 1.9.4, > > > got the following error: > > org.apache.catalina.core.StandardContext listenerStart > SEVERE: Exception sending context initialized event to listener > instance of

Re: Struts 2.5.22 and memory?

2019-12-08 Thread Lukasz Lenart
niedz., 8 gru 2019 o 22:30 Heikki Hyyrö (TAU) napisał(a): > > I am wondering if this is just a coincidence... But a site I am running > with Struts 2 started to output errors of form > > > Exception in thread "ajp-bio-8009-exec-164" Exception in thread > "ajp-bio-8009-exec-183" Exception in

Re: specific : WARNING : Redundant code

2019-12-02 Thread Lukasz Lenart
sob., 16 lis 2019 o 12:24 zahis Rahman napisał(a): > > Thank you. > I am just pleased that I found a JVM [JDK8 ] version which ensures stability > in the underlying application dependency. > IBM are also only releasing jdk8, I suspect they are also waiting for the > resolution. The same

[ANN] Apache Struts 2.5.22

2019-11-29 Thread Lukasz Lenart
The Apache Struts group is pleased to announce that Struts 2.5.22 is available as a “General Availability” release. The GA designation is our highest quality grade. https://struts.apache.org/announce.html#a20191129 Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready

Re: /struts-2.5.22-all.zip where can download

2019-11-25 Thread Lukasz Lenart
niedz., 24 lis 2019 o 06:15 Zahid Rahman napisał(a): > "struts cookbook" button is unresponsive on main page > http://localhost:8080/struts2-showcase/index.action > It was unresponsive in the previous version too. Thanks, changed to point to https://github.com/apache/struts-examples Regards --

Re: specific : WARNING

2019-11-15 Thread Lukasz Lenart
pt., 15 lis 2019 o 21:31 zahis Rahman napisał(a): > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by > com.opensymphony.xwork2.util.AbstractLocalizedTextProvider > (file:/C:/Users/zahid/.m2/repository/org/apache/struts/struts2- >

Re: s:property #attr working in header.jsp but not HTTP 404.jsp

2019-11-15 Thread Lukasz Lenart
pt., 15 lis 2019 o 16:06 albert kao napisał(a): > > How to fix it? > I like to use a variable instead of hard coding like this: > "> It isn't about JavaScript, but how do you redirect/forward to such JSP page? You should define a global action `404.action` and use it instead of the JSP Regards

Re: s:property #attr working in header.jsp but not HTTP 404.jsp

2019-11-15 Thread Lukasz Lenart
pt., 15 lis 2019 o 14:13 albert kao napisał(a): > but displays an empty string > in http404.jsp ("Page Not Found"): >"> How do you access the http404.jsp? Directly, out of action? If so, there is no context that's why #attr doesn't work Regards -- Łukasz + 48 606 323 122

Re: Migrating the Migration Guide

2019-11-11 Thread Lukasz Lenart
Hi, I have re-organised our main Confluence space and renamed it to "Apache Struts 2 Wiki", it's a source of our Migration Guide and Security Bulletins. https://cwiki.apache.org/confluence/display/WW Please be aware that we host two more spaces at Confluence

Re: Struts 2.5.21 release date

2019-10-25 Thread Lukasz Lenart
śr., 23 paź 2019 o 16:47 Sebastian Götz napisał(a): > can you tell us when there will be the next bug fix release for Struts > 2.5? Some work has been done towards java 11 compatibility on 2.5.21 but > I see no changes lately. > According to the project status of Struts2 in the Apache JIRA there

Re: How to auto submit a jsp page after loading

2019-10-03 Thread Lukasz Lenart
czw., 3 paź 2019 o 13:57 albert kao napisał(a): > > How to auto submit a jsp page after loading is done? > i.e. after a jsp page is completely loading, it will auto submit - advance > to the next page without one of the Submit buttons is pressed or a link is > clicked. > This is desired for

Re: Migrating the Migration Guide

2019-09-23 Thread Lukasz Lenart
sob., 21 wrz 2019 o 11:26 Yasser Zamani napisał(a): > > Hi, > > Sorry I cannot recall why we should migrate -- Have INFRA compelled us and > Confulence is going to be removed? Or just to beautify? No, we don't have to migrate. We did so with the site and other guides just because it's easier

Migrating the Migration Guide

2019-09-20 Thread Lukasz Lenart
Hi, The very last thing to migrate from Confluence to Markdown is our Migration Guide [1]. The only problem with having all in .md files and exposed via Git is that with Confluence we can restrict access to particular pages which is useful when we are preparing a security release. We can prepare

[ANN] Apache Struts 2.3.x EOL

2019-09-16 Thread Lukasz Lenart
As announced over 6 months ago, Apache Struts 2.3.x web framework series reached its end of life and won’t be longer officially supported. Please check the following reading to find more details: https://struts.apache.org/struts23-eol-announcement https://struts.apache.org/announce#a20190912

Site staging

2019-09-13 Thread Lukasz Lenart
Hi, Based on the latest Infra improvements I have prepare a build to stage all PRs opened against our webpage here [1]. There is a Jenkins build [2] that will perform the job which I'm testing now, there are some problems but hopefully I will solved them soon :) [1]

Re: Structs 2 Junit plugin

2019-05-24 Thread Lukasz Lenart
pt., 24 maj 2019 o 08:48 Kiran Kumar napisał(a): > While trying to execute Junit test cases for Struts 2 on Zulu JDK 11.0 we > are getting an error. > The issue is the package org.apache.struts2 is accessible by more than one > module (Struts 2 core module and Struts 2 Junit plugin module). And

Re: Migration Help for angular2

2019-05-22 Thread Lukasz Lenart
wt., 21 maj 2019 o 18:17 Gopal, Siva Prakash (US - Mechanicsburg Delivery) napisał(a): > > Thanks for your help > > Do we have recommended approach to handle this. One. > > Do we need to add any wrapper on top of the existing action class. Can you > please suggest some approach on it. Not sure

Re: Upgrade from struts 2.3.37 to struts 2.5.20 issue.

2019-05-22 Thread Lukasz Lenart
Hi, Did you follow the migration guideline? https://cwiki.apache.org/confluence/display/WW/Struts+2.3+to+2.5+migration Regards Lukasz wt., 21 maj 2019 o 18:45 HuiFung@GMail napisał(a): > > encounter issue when .ear file deployed in Weblogic 12.1.3.0.0 server. > > Error: Struts Dispatcher

Re: Migration Help for angular2

2019-05-16 Thread Lukasz Lenart
wt., 14 maj 2019 o 16:50 Gopal, Siva Prakash (US - Mechanicsburg Delivery) napisał(a): > Our current application is developed based on Strut2 with presentation layer > as JSP. We would like to upgrade presentation layer as responsive (Planning > to use Angular 6) and continue to reuse our

Re: How to Strtus2-Rest plugin could create /user/{id}/{branch} URL Pattern

2019-05-15 Thread Lukasz Lenart
niedz., 12 maj 2019 o 07:49 M Huzaifah napisał(a): > > Dear All, > > i’am stuck how to create /user/{id}/{branch}/{xx} URL Pattern using > Struts-convention and Struts2-rest plugin. > there is a way to make it done? The REST plugin doesn't support such configuration now, you can try to play

Re: [struts-user] XML based configuration

2019-04-17 Thread Lukasz Lenart
pon., 4 lut 2019 o 23:16 Dave napisał(a): > > Hi Lukasz, > > Here's a summary of how Roller uses Struts and Tiles: > > Roller uses the StrutsPrepareAndExecute filter and maps it to all requests > ending with “.rol” > https://github.com/apache/roller/blob/master/app/src/main/webapp/WEB-INF/web.xml

Re: disallowProxyMemberAccess

2019-04-17 Thread Lukasz Lenart
And I hope 2.5.21 will be available very soon, in few weeks :) śr., 17 kwi 2019 o 09:40 Lukasz Lenart napisał(a): > > wt., 16 kwi 2019 o 16:11 Britta Katzenbach napisał(a): > > We run into the same issue as described in WW-5004 after the update from > > 2.5.18 to 2.5.20. I

Re: disallowProxyMemberAccess

2019-04-17 Thread Lukasz Lenart
wt., 16 kwi 2019 o 16:11 Britta Katzenbach napisał(a): > We run into the same issue as described in WW-5004 after the update from > 2.5.18 to 2.5.20. It works, if we set struts.disallowProxyMemberAccess to > false as discribed in the bug. We use spring plugin. No the question how > should the

Re: Logging problem

2019-04-11 Thread Lukasz Lenart
śr., 10 kwi 2019 o 11:20 Tamás Barta napisał(a): > > Hi, > > We use JBoss as AS where logging is based on Log4J version 1. I see that > Struts 2 uses Log4J version 2 and my problem is that how can I route Struts > logging messages to the Log4J inside JBoss. I guess I need a bridge-like > Log4J2

Re: getText with multiple parameters not populating correctly

2019-04-02 Thread Lukasz Lenart
wt., 2 kwi 2019 o 16:54 Dave Newton napisał(a): > > Single-quotes must be escaped using double single-quotes; single quotes are > used to allow non-resource strings. IIRC this is just how `MessageFormat` > works. Yeah... getText() is using MessageFormat so you must properly escape your messages

Re: getText with multiple parameters not populating correctly

2019-04-02 Thread Lukasz Lenart
wt., 2 kwi 2019 o 04:46 Affan Osman napisał(a): > > I am using version 2.5.17. I am not using any custom text provider. > > I tried the same example as in the unit test but still only first parameter > gets populated. The second and third show as [1] and [2]. Could you share your struts.xml?

Re: getText with multiple parameters not populating correctly

2019-03-31 Thread Lukasz Lenart
sob., 30 mar 2019 o 20:03 Affan Osman napisał(a): > > I am passing in three parameters to getText but only the first one gets > populated. > > getText("error.invalidcode", new String[] {"name", "num", "1az"}); > > And in my ApplicationResources.properties > > error.invalidcode={0} and {1}

  1   2   3   4   5   6   7   8   9   10   >