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: URL tag question

2024-10-30 Thread Matt Williams
, but instead put them all into an Array or Iterable object and add that as the value for a single param child tag. Regards, Nate -Original Message- From: Matt Williams Sent: Wednesday, 30 October 2024 15:52 To: user@struts.apache.org Subject: URL tag question I am using Struts 6.6

RE: URL tag question

2024-10-30 Thread Nate Kerkhofs
ginal Message- From: Matt Williams Sent: Wednesday, 30 October 2024 15:52 To: user@struts.apache.org Subject: URL tag question I am using Struts 6.6.0, I am needing to generate a URL using the s:url tag that will pass a List of values (example:  myurl.action?myData=1&myData=2&myData=3)

URL tag question

2024-10-30 Thread Matt Williams
I am using Struts 6.6.0, I am needing to generate a URL using the s:url tag that will pass a List of values (example:  myurl.action?myData=1&myData=2&myData=3) I have:     1     2     3 However, the generated URL only includes myData=3. Am I missing something? Thanks! Matt

Re: Configuration question

2021-02-22 Thread Tamás Barta
Hi, My namespace was set to '/', if I remove it and use the default namespace then it works well. Regards, Tamás On Mon, Feb 22, 2021 at 2:50 PM Dave Newton wrote: > Are you asking about default-action-ref? > > On Mon, Feb 22, 2021 at 08:28 Tamás Barta wrote: > > > Hi, > > > > I would like St

Re: Configuration question

2021-02-22 Thread Dave Newton
Are you asking about default-action-ref? On Mon, Feb 22, 2021 at 08:28 Tamás Barta wrote: > Hi, > > I would like Struts 2 to execute MyAction when there is no action mapping > for a path. So I set > > >... > > > in struts.xml. > > When I request to url /foo or /foo.action, it works as expe

Configuration question

2021-02-22 Thread Tamás Barta
Hi, I would like Struts 2 to execute MyAction when there is no action mapping for a path. So I set ... in struts.xml. When I request to url /foo or /foo.action, it works as expected, my Action is executed without any exceptions. But when I request to /foo/foo.action then my Action is execu

Re: Question

2018-11-14 Thread John Bush
orah White Sent: Wednesday, November 14, 2018 1:34 PM To:user@struts.apache.org Subject: Question Hello, we have some very old internal apps that are still using Struts 1. Does this alert apply to Struts 1 or only Struts 2? It says 2.3.36 or prior so I'm not sure. https://cve.mitre.org/cgi-

Re: Question

2018-11-14 Thread Lukasz Lenart
śr., 14 lis 2018 o 19:34 Deborah White napisał(a): > > Hello, we have some very old internal apps that are still using Struts 1. > Does this alert apply to Struts 1 or only Struts 2? It says 2.3.36 or prior > so I'm not sure. > > https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-131

RE: Question

2018-11-14 Thread Eric Reed
Struts 2. -Original Message- From: Deborah White Sent: Wednesday, November 14, 2018 1:34 PM To: user@struts.apache.org Subject: Question Hello, we have some very old internal apps that are still using Struts 1. Does this alert apply to Struts 1 or only Struts 2? It says 2.3.36 or

Question

2018-11-14 Thread Deborah White
Hello, we have some very old internal apps that are still using Struts 1. Does this alert apply to Struts 1 or only Struts 2? It says 2.3.36 or prior so I'm not sure. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-131 CONFIDENTIALITY NOTICE: This communication with its contents m

Re: [EXTERNAL] Re: Question Regarding Recent Security Announcement

2018-11-05 Thread Lukasz Lenart
pon., 5 lis 2018 o 13:33 David Dillard napisał(a): > > Ok, that addresses one question, but still leaves one: why is it being > recommended to update File Upload NOW due to a possible DoS, when Struts has > been using a version of File Upload with no documented DoS issue for the

RE: [EXTERNAL] Re: Question Regarding Recent Security Announcement

2018-11-05 Thread David Dillard
Ok, that addresses one question, but still leaves one: why is it being recommended to update File Upload NOW due to a possible DoS, when Struts has been using a version of File Upload with no documented DoS issue for the last six releases??? Or put another way, Struts 2.3.35 uses File Upload

Re: Question Regarding Recent Security Announcement

2018-11-04 Thread Lukasz Lenart
niedz., 4 lis 2018 o 18:40 David Dillard napisał(a): > 1. Per the Maven repository, Struts 2.3.36 recommends Fileupload 1.3.2 be > used, > not 1.3.3, so I'm confused about what's stated in the email. What's > recommen

RE: Question Regarding Recent Security Announcement

2018-11-04 Thread Yasser Zamani
Hi David, That was a typo which already has fixed and re-announced. We meant 1.3.3. Thanks for your email. Regards. >-Original Message- >From: David Dillard >Sent: Sunday, November 4, 2018 9:10 PM >To: user@struts.apache.org >Subject: Question Regarding Recent Securi

Question Regarding Recent Security Announcement

2018-11-04 Thread David Dillard
Hi, An email was recently sent to the Apache Announcements list suggesting that users update to Apache Struts 2.3.36 in order to update to Apache Commons

Re: Quick question on the patch for CVE-2018-11776

2018-09-03 Thread Lukasz Lenart
wt., 4 wrz 2018 o 07:31 Akkina, Rahul Anand napisał(a): > > Hi Team, > > Greetings for the day ! > > One of the applications(very old) which we host uses struts 1.1 and to just > add to guarantee we are not exposing any action path with url pattern /* , > Going by the details posted below forums

Quick question on the patch for CVE-2018-11776

2018-09-03 Thread Akkina, Rahul Anand
Hi Team, Greetings for the day ! One of the applications(very old) which we host uses struts 1.1 and to just add to guarantee we are not exposing any action path with url pattern /* , Going by the details posted below forums the vulnerability is specific to struts 2 vulnerabilities. https://c

RE: Quick question on the patch for CVE-2018-11776

2018-09-03 Thread Yasser Zamani
>From: Kiran Ananthpur Bacche (kbacche) >Sent: Friday, August 31, 2018 7:27 AM >To: user@struts.apache.org >Subject: Quick question on the patch for CVE-2018-11776 > >Hi Team, > >Version 2.3.35 is the official patch for this vulnerability. However v2.3.35 >has a >b

Quick question on the patch for CVE-2018-11776

2018-08-30 Thread Kiran Ananthpur Bacche (kbacche)
Hi Team, Version 2.3.35 is the official patch for this vulnerability. However v2.3.35 has a bunch of other fixes too. So if we want the patch for only "CVE-2018-11776", what are the options available? Is the fix for "CVE-2018-11776" contained completely in DefaultActionMapper.java? Given tha

RE: Question

2017-12-13 Thread Deborah White
Never mind. I figured it out. -Original Message- From: Deborah White [mailto:deborah.wh...@doj.ca.gov] Sent: Wednesday, December 13, 2017 10:56 AM To: Struts Users Mailing List Subject: RE: Question This might seem like a dumb question to you, but the action I am using already extends

RE: Question

2017-12-13 Thread Deborah White
This might seem like a dumb question to you, but the action I am using already extends ActionSupport and implements ServletRequestAware. How do I then implement the ReCaptchaAware? -Original Message- From: Lukasz Lenart [mailto:lukaszlen...@apache.org] Sent: Monday, December 11, 2017

Re: Question

2017-12-11 Thread Lukasz Lenart
2017-12-11 20:56 GMT+01:00 Deborah White : > Hello, has anyone implemented the new reCaptcha v2 (I'm not a robot) with > Struts 2.3.34? I have followed examples and it just spins when clicked. Yesterday I have extended my Google AppEngine plugin [1] with a support for reCAPTCHA. It targets Strut

Question

2017-12-11 Thread Deborah White
Hello, has anyone implemented the new reCaptcha v2 (I'm not a robot) with Struts 2.3.34? I have followed examples and it just spins when clicked. CONFIDENTIALITY NOTICE: This communication with its contents may contain confidential and/or legally privileged information. It is solely for the use

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-10-02 Thread Lukasz Lenart
2017-09-29 17:35 GMT+02:00 Roslyakova, Svetlana : > Below didn't work. We ended up creating new Map variable in Action, updating > that variable in jsp and setting session from that variable in Action. Thanks for posting back your solution, I think we should start collecting all these small advi

RE: Question about upgrade to struts2 2.3.34 and session variables

2017-09-29 Thread Roslyakova, Svetlana
AM To: Struts Users Mailing List Subject: Re: Question about upgrade to struts2 2.3.34 and session variables 2017-09-26 18:11 GMT+02:00 Roslyakova, Svetlana : > Here is the full example: > > > > > >"> type="text" id="userId" theme="simple&

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-27 Thread Lukasz Lenart
2017-09-27 13:49 GMT+02:00 Roslyakova, Svetlana : > 250917 [http-nio-8080-exec-8] WARN > com.opensymphony.xwork2.interceptor.ParametersInterceptor - Parameter > [#session['userList'][0].UserId] matches excluded pattern > [(^|\%\{)((#?)(top(\.|\['|\[")|\[\d\]\.)?)(dojo|struts|session|request|resp

RE: Question about upgrade to struts2 2.3.34 and session variables

2017-09-27 Thread Roslyakova, Svetlana
ay, September 27, 2017 1:24 AM To: user@struts.apache.org Subject: Re: Question about upgrade to struts2 2.3.34 and session variables On 9/26/2017 10:47 PM, Roslyakova, Svetlana wrote: > Hi Yasser, > > Unfortunately it didn't work either. > > Thanks, > > Lana. >

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Lukasz Lenart
2017-09-26 18:11 GMT+02:00 Roslyakova, Svetlana : > Here is the full example: > > > > > > >"> type="text" id="userId" theme="simple" name="session. userList > [%{#stat.index}].UserId" value="%{top.UserId}" /> > This should work and I would

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Yasser Zamani
any related WARN. [1] https://struts.apache.org/docs/devmode.html > -Original Message- > From: Yasser Zamani [mailto:yasser.zam...@live.com] > Sent: Tuesday, September 26, 2017 1:49 PM > To: user@struts.apache.org > Subject: Re: Question about upgrade to struts2 2.3.34 and

RE: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Roslyakova, Svetlana
Hi Yasser, Unfortunately it didn't work either. Thanks, Lana. -Original Message- From: Yasser Zamani [mailto:yasser.zam...@live.com] Sent: Tuesday, September 26, 2017 1:49 PM To: user@struts.apache.org Subject: Re: Question about upgrade to struts2 2.3.34 and session variables

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Yasser Zamani
m: Yasser Zamani [mailto:yasser.zam...@live.com] > Sent: Tuesday, September 26, 2017 1:12 PM > To: user@struts.apache.org > Subject: Re: Question about upgrade to struts2 2.3.34 and session variables > > > > On 9/26/2017 7:41 PM, Roslyakova, Svetlana wrote: >> Here is th

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Yasser Zamani
; It all worked before the upgrade. > > Thanks, > > Lana. > > > > -Original Message- > From: Lukasz Lenart [mailto:lukaszlen...@apache.org] > Sent: Tuesday, September 26, 2017 11:39 AM > To: Struts Users Mailing List > Subject: Re: Question about

RE: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Roslyakova, Svetlana
= userId; } It all worked before the upgrade. Thanks, Lana. -Original Message- From: Lukasz Lenart [mailto:lukaszlen...@apache.org] Sent: Tuesday, September 26, 2017 11:39 AM To: Struts Users Mailing List Subject: Re: Question about upgrade to struts2 2.3.34 and session v

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Lukasz Lenart
2017-09-26 17:27 GMT+02:00 Roslyakova, Svetlana : > Hi Lukasz, > > I have another issue with struts2 2.3.34 upgrade. > We are using session variables throughout the application: > > name="session.user.UserId" value="%{top.UserId}" /> What getters/setters do you have for UserId? And why do you use

RE: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Roslyakova, Svetlana
] Sent: Tuesday, September 26, 2017 1:21 AM To: Struts Users Mailing List Subject: Re: Question about upgrade to struts2 2.3.34 and s:hidden tag Hi I was just want to point to you to this [1] and especially to this issue [2] as now tag follows xhtml theme specification. [1] https

Re: Question about upgrade to struts2 2.3.34 and s:hidden tag

2017-09-25 Thread Lukasz Lenart
ova, Svetlana > *Sent:* Monday, September 25, 2017 5:39 PM > *To:* 'Struts Users Mailing List' > *Subject:* RE: Question about upgrade to struts2 2.3.34 and s:hidden tag > > > > A little more information. > > > > I have the following

RE: Question about upgrade to struts2 2.3.34 and s:hidden tag

2017-09-25 Thread Roslyakova, Svetlana
I was able to resolve the issue. We didn’t have ‘theme=”simple”’ on the tags. Once I’ve added it to the tags, the issue went away. From: Roslyakova, Svetlana Sent: Monday, September 25, 2017 5:39 PM To: 'Struts Users Mailing List' Subject: RE: Question about upgrade to struts2

RE: Question about upgrade to struts2 2.3.34 and s:hidden tag

2017-09-25 Thread Roslyakova, Svetlana
change to the jsp pages are displayed side by side, as they did before the upgrade. Please disregard below errors. They’ve existed before the upgrade. Thanks, Lana. From: Roslyakova, Svetlana Sent: Monday, September 25, 2017 4:56 PM To: Struts Users Mailing List Subject: Question about

Question about upgrade to struts2 2.3.34 and s:hidden tag

2017-09-25 Thread Roslyakova, Svetlana
Subject: Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil 2017-09-25 20:05 GMT+02:00 Roslyakova, Svetlana mailto:svetlana.roslyak...@bnymellon.com>>: > Hi, > > We have upgraded to struts2 version 2.3.34. > > After the upgrade s:hidden field stopped

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-25 Thread Lukasz Lenart
gt; > Any advice? Do you see any exception in the logs? And please do not mix two different questions, this thread is about Struts 2.5.13 and your question is not related to it. It would be better start a new thread. Regards -- Łukasz + 48 606 323 122

RE: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-25 Thread Roslyakova, Svetlana
: Question about com.opensymphony.xwork2.util.LocalizedTextUtil Hi, The - com.opensymphony.xwork2.util.LocalizedTextUtil was deleted with struts2 2.5.13. But I use following code in my small project and I'm not sure, how to replace it: ... import com.opensymphony.xwork2.util.LocalizedTex

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-25 Thread Lukasz Lenart
2017-09-22 21:01 GMT+02:00 Klaus Tachtler : > Hi, > > thank you once again for your support, Łukasz and Adam! > > @Łukasz: you're absolutly right to say: > "I would rather pass a localised string to the bean (if possible), this > creates a dependency on Struts in non-Struts related bean" > > Depend

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Klaus Tachtler
Hi, thank you once again for your support, Łukasz and Adam! @Łukasz: you're absolutly right to say: "I would rather pass a localised string to the bean (if possible), this creates a dependency on Struts in non-Struts related bean" Depending on that I ONLY want to use the same resource bundle as

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Klaus Tachtler
Hi, thank you for the help! I will try the solution and implement it. Thank you! Klaus. Borrowing from Lukasz’s improvement. public class MyControlelr extends ActionSupport … @Override public String execute() { String msg = getText(‘myMessageKey”); FileReader.determineFileReader(msg,

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Adam Brin
Borrowing from Lukasz’s improvement. public class MyControlelr extends ActionSupport … @Override public String execute() { String msg = getText(‘myMessageKey”); FileReader.determineFileReader(msg, userString); -- _ Adam Brin Director

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Klaus Tachtler
Hi Adam, thank you so much for the example! BUT from where can I get the "TextProvider provider" (you said all ActionSupport classes implement this) Thank you! Klaus. import com.opensymphony.xwork2.TextProvider; public class FileReader { private static Locale locale = null;

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Lukasz Lenart
2017-09-22 16:39 GMT+02:00 Adam Brin : > import com.opensymphony.xwork2.TextProvider; > > public class FileReader { > > private static Locale locale = null; > >// not sure if this needs to be static > public static Bean determineFileReader(String userString, > TextProvider

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Adam Brin
import com.opensymphony.xwork2.TextProvider; public class FileReader { private static Locale locale = null; // not sure if this needs to be static public static Bean determineFileReader(String userString, TextProvider provider) { String i18nString = provi

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Klaus Tachtler
Hi Adam, can you give me a small example, to understand what you mean? Sorry and thank you for your patience with me! Klaus. Ok, then from your Action/Controller pass in a TextProvider into the method which has the localization. All ActionSupport subclassess implement this, so you can pas

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Adam Brin
Ok, then from your Action/Controller pass in a TextProvider into the method which has the localization. All ActionSupport subclassess implement this, so you can pass this in. -- _ Adam Brin Director of Technology, Digital Antiquity 480.965

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Klaus Tachtler
Hi Adam, no it is no a subclass. package... import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.util.LocalizedTextUtil; import net.tachtler.resources.Globals; public class FileReader { private static Locale locale = null; public static Bean determine

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Adam Brin
what class are you doing this in? Are you subclassing off of ActionSupport? -- _ Adam Brin Director of Technology, Digital Antiquity 480.965.1278 > On Sep 22, 2017, at 7:20 AM, Klaus Tachtler wrote: > > Hi Łukasz, > > can you give me an

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Klaus Tachtler
Hi Łukasz, can you give me an example, so that I can understand it right? I have ActionContext and ActionContext.getContext().getLocale() BUT how can I use getText(key) in my situation. Thank you patience with me! Klaus. 2017-09-22 16:12 GMT+02:00 Klaus Tachtler : is it possible to use g

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Lukasz Lenart
2017-09-22 16:12 GMT+02:00 Klaus Tachtler : > is it possible to use getText("global.unkonwn") with the > ActionContext.getContext().getLocale() like > - getText("global.unknown", ActionContext.getContext().getLocale()); You don't have to, I mean "getText(key)" does it for you - it uses the current

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Klaus Tachtler
Hi Łukasz, is it possible to use getText("global.unkonwn") with the ActionContext.getContext().getLocale() like - getText("global.unknown", ActionContext.getContext().getLocale()); Thank you! Klaus. 2017-09-22 15:57 GMT+02:00 Klaus Tachtler : I use it to fill up a bean with the string "un

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Lukasz Lenart
2017-09-22 15:57 GMT+02:00 Klaus Tachtler : > I use it to fill up a bean with the string "unkonwn" or "unbekannt" to show > it later on the website. > > So, what I want to do is, get a string in different languages from the > Resource-Bundle from the ActionContext. Why don't you use "getText(key)"

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Klaus Tachtler
Hi, thank you for your reply. I use it to fill up a bean with the string "unkonwn" or "unbekannt" to show it later on the website. So, what I want to do is, get a string in different languages from the Resource-Bundle from the ActionContext. Thank you! Klaus. 2017-09-22 15:40 GMT+02:0

Re: Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Lukasz Lenart
2017-09-22 15:40 GMT+02:00 Klaus Tachtler : > String i18nString = LocalizedTextUtil.findDefaultText("global.unknown", > ActionContext.getContext().getLocale()); Where do you use "i18nString"? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ -

Question about com.opensymphony.xwork2.util.LocalizedTextUtil

2017-09-22 Thread Klaus Tachtler
Hi, The - com.opensymphony.xwork2.util.LocalizedTextUtil was deleted with struts2 2.5.13. But I use following code in my small project and I'm not sure, how to replace it: ... import com.opensymphony.xwork2.util.LocalizedTextUtil; ... /* * Get the i18n text for "string" from ActionContext

Re: Question

2017-03-16 Thread Lukasz Lenart
2017-03-16 13:28 GMT+01:00 Roar Fløttum : > Does anyone know if Struts 1 is affected by this? > > https://cwiki.apache.org/confluence/display/WW/S2-045 > > Nope, it isn't. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Question

2017-03-16 Thread Roar Fløttum
Does anyone know if Struts 1 is affected by this? https://cwiki.apache.org/confluence/display/WW/S2-045 Med vennlig hilsen Roar Fløttum | [cid:image001.jpg@01CC9C8D.E0C2B400] TRIONA | Systemutvikler | +47 988 31 051 roar.flot...@triona.no | www.triona.no

Re: Question

2017-03-15 Thread Lukasz Lenart
2017-03-15 18:08 GMT+01:00 Roar Fløttum : > Does anyone know if Struts 1 is affected by this? > > https://cwiki.apache.org/confluence/display/WW/S2-045 > No, it isn't. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Question

2017-03-15 Thread Roar Fløttum
Does anyone know if Struts 1 is affected by this? https://cwiki.apache.org/confluence/display/WW/S2-045 Med vennlig hilsen Roar Fløttum | [cid:image001.jpg@01CC9C8D.E0C2B400] TRIONA | Systemutvikler | +47 988 31 051 roar.flot...@triona.no | www.triona.no

Re: [Question] [struts2-rest-plugin] How shall I handle GET request /orders/{id}/items?

2016-09-07 Thread Ken McWilliams
There isn't a recommended way to handle deeply set lists as per your example... Or I missed it. I'm not a fan of that plugin. It is really trivial to do this without any plugins: https://struts.apache.org/docs/wildcard-mappings.html Wildcards or using the named-pattern matcher (although in the lin

[Question] [struts2-rest-plugin] How shall I handle GET request /orders/{id}/items?

2016-09-07 Thread Yong Kang Guo
Hi experts, I'm learning to use the struts2-rest-plugin. In the sample project 'rest-showcase', I see a good example where I can GET /orders and /orders/1. But how to implement navigation from one resource to another? E.g., Let's say an Order has many Items. Then how to implement the proper han

Re: Struts 1 & Struts 2 coexist question

2016-01-04 Thread Lukasz Lenart
2016-01-04 20:52 GMT+01:00 Xu, Hui@DCSS : > Question modified: > We are planning to migrate our application written in Struts 1 to Struts 2. > We want to have Struts 1 and Struts 2 coexist as we migrate our application. > We have a few pages that need to share state. Curre

RE: Struts 1 & Struts 2 coexist question

2016-01-04 Thread Xu, Hui@DCSS
Question modified: We are planning to migrate our application written in Struts 1 to Struts 2. We want to have Struts 1 and Struts 2 coexist as we migrate our application. We have a few pages that need to share state. Currently this is implemented in Struts 1 by defining a conversation. 1

Struts 1 & Struts 2 coexist question

2016-01-04 Thread Xu, Hui@DCSS
We are planning to migrate our application written in Struts 1 to Struts 2. We want to have Struts 1 and Struts 2 coexist as we migrate our application. We have a few pages that need to share state. Currently this is implemented in Struts 1 by defining a conversation. How do we implement this in

Re: Struts 1 migrate to Struts 2 question

2015-12-22 Thread Dave Newton
> > The effort required to upgrade and test a large application to Struts > version 2 looks very large. The effort to upgrade and test the entire > application in a single release looks undoable. > Agreed. > 1) Are there any software tools that can be used to speed up the time > to update

Struts 1 migrate to Struts 2 question

2015-12-22 Thread Xu, Hui@DCSS
We are planning to migrate to Struts 2.3.24.1 from Struts 1.1. Here are our questions: We have large and complex case management application that uses struts and struts menu version 1.1. The application has over 1,000 pages many of which contain many data elements. The effort required to upg

回复: 回复: 回复: Question of properties file

2014-07-18 Thread 木叶清风-谢
/Basic_Struts2_Mvn/src/main/resources originally.So it don't work.‍ -- 原始邮件 -- 发件人: "Lukasz Lenart";; 发送时间: 2014年7月18日(星期五) 中午1:06 收件人: "Struts Users Mailing List"; 主题: Re: 回复: 回复: Question of properties file 2014-07-18 5:31 GMT+02:00 木叶

Re: 回复: 回复: Question of properties file

2014-07-17 Thread Lukasz Lenart
2014-07-18 5:31 GMT+02:00 木叶清风-谢 : > I have solved my problem!thank you very much. Can you share what it was? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apach

回复: 回复: Question of properties file

2014-07-17 Thread 木叶清风-谢
I have solved my problem!thank you very much. -- 原始邮件 -- 发件人: "Lukasz Lenart";; 发送时间: 2014年7月15日(星期二) 下午3:27 收件人: "Struts Users Mailing List"; 主题: Re: 回复: Question of properties file 2014-07-15 9:23 GMT+02:00 木叶清风-谢 : > I have tr

Re: 回复: Question of properties file

2014-07-15 Thread Lukasz Lenart
2014-07-15 9:23 GMT+02:00 木叶清风-谢 : > I have tried,but it doesn't work It must be something wrong with your setup, though. What do you use to build the project and prepare WAR file? https://github.com/apache/struts/tree/develop/apps/blank/src/main/resources/example Regards -- Łukasz + 48 606 323

回复: Question of properties file

2014-07-15 Thread 木叶清风-谢
I have tried,but it doesn't work -- 原始邮件 -- 发件人: "Lukasz Lenart";; 发送时间: 2014年7月15日(星期二) 中午12:54 收件人: "Struts Users Mailing List"; 主题: Re: Question of properties file 2014-07-15 3:57 GMT+02:00 木叶清风-谢 : > hi!I meet a problem abo

Re: Question of properties file

2014-07-14 Thread Lukasz Lenart
2014-07-15 3:57 GMT+02:00 木叶清风-谢 : > hi!I meet a problem about the properties files. > I discover that the properties won't be loaded automatically unless use > value="global,Register,Package"/> in struts.xml. > I want to know how to configure the struts2 to load Package.properties and > (activ

Question of properties file

2014-07-14 Thread 木叶清风-谢
hi!I meet a problem about the properties files. I discover that the properties won't be loaded automatically unless use in struts.xml. I want to know how to configure the struts2 to load Package.properties and (activity_name).properties automatically,notice the ,the value is true!!!‍

Re: REST question

2014-02-11 Thread Miguel
aramsPrepareParamsStack), based on package json-default? It's a rather > big > > application and can't be refactored to be REST only. > > > > Thanks for your time reading an replying the question. > > > > > > > > > > Si quieres ser más positiv

Re: REST question

2014-02-11 Thread Lukasz Lenart
-default > stack to my Rest controllers ONLY, and the other 'old' actions continue to > work with the custom stack (Spring + Open_session_in_view + > paramsPrepareParamsStack), based on package json-default? It's a rather big > application and can't be refactored to be REST only

RE: REST question

2014-02-11 Thread Martin Gainty
t... maybe another interceptor for exceptions? throw new ServletException(ex); } } } ? Martin- > Date: Tue, 11 Feb 2014 14:42:47 -0700 > Subject: Re: REST question > From: ken.mcwilli...@gmail.com > To: user@struts.apache.org > > Sounds like you have u

Re: REST question

2014-02-11 Thread Miguel
Thanks for your time reading an replying the question. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco Sobrino On Tue, Feb 11, 2014 at 3:42 PM, Ken McWilliams wrote: > Sounds like you have used the Open Session in View method... probably > provided by a custom interce

Re: REST question

2014-02-11 Thread Ken McWilliams
Sounds like you have used the Open Session in View method... probably provided by a custom interceptor, when adding the rest plugin you have changed your action to the rest package and forgot to put your interceptor back in place, so now you don't have a hibernate session and the view generates thi

REST question

2014-02-10 Thread Miguel
Hi, A strange situation happens when I load *struts2-rest-plugin-2.3.16.jar* With out the REST plugin my action and jsp's works as always has worked. But with the mere inclusion of the REST Plugin, some jsp's stops finding variables, because the variable name changes. Here is the snippet: struts.

Antwort: Re: Re: question about ParameterNameAware

2014-01-09 Thread Christoph Nenning
> > There is && and () as well. > > > > In my case the results would look like this: > > > > false && (false || true) > > Ah... sorry :( That was in old version (prior to 2.3.16) > I guess it is quite confusing to have several versions to deal with :) > So set 'acceptParams' with patterns that

Re: Re: question about ParameterNameAware

2014-01-09 Thread Lukasz Lenart
2014/1/9 Christoph Nenning : > There is && and () as well. > > In my case the results would look like this: > > false && (false || true) Ah... sorry :( That was in old version (prior to 2.3.16) So set 'acceptParams' with patterns that will accept params in your case Regards -- Łukasz + 48 606

Re: Re: question about ParameterNameAware

2014-01-09 Thread Christoph Nenning
> > The problem is this line: > > > >> return acceptableName(name) && (parameterNameAware == null || > >> parameterNameAware.acceptableParameterName(name)); > > > > when acceptableName(name) returns false, > > parameterNameAware.acceptableParameterName(name) is not called. > > > > Or do get thi

Re: Re: question about ParameterNameAware

2014-01-09 Thread Lukasz Lenart
2014/1/9 Christoph Nenning : > The problem is this line: > >> return acceptableName(name) && (parameterNameAware == null || >> parameterNameAware.acceptableParameterName(name)); > > when acceptableName(name) returns false, > parameterNameAware.acceptableParameterName(name) is not called. > > Or

Re: Re: question about ParameterNameAware

2014-01-09 Thread Christoph Nenning
> 2014/1/9 Christoph Nenning : > >> Struts version? Because in 2.3.16 behaviour of that has changed. > >> > > > > It is 2.3.16. > > So that means javadoc is outdated? > > Nope > > > What options do I have? > > Override ParametersInterceptor? > > Nope, just implement ParameterNameAware in your ac

Re: Re: question about ParameterNameAware

2014-01-09 Thread Lukasz Lenart
2014/1/9 Christoph Nenning : >> Struts version? Because in 2.3.16 behaviour of that has changed. >> > > It is 2.3.16. > So that means javadoc is outdated? Nope > What options do I have? > Override ParametersInterceptor? Nope, just implement ParameterNameAware in your action and accept param name

Antwort: Re: question about ParameterNameAware

2014-01-09 Thread Christoph Nenning
> Struts version? Because in 2.3.16 behaviour of that has changed. > It is 2.3.16. So that means javadoc is outdated? What options do I have? Override ParametersInterceptor? regards, Christoph This Email was scanned by Sophos Anti Virus

Re: question about ParameterNameAware

2014-01-09 Thread Lukasz Lenart
Struts version? Because in 2.3.16 behaviour of that has changed. 2014/1/9 Christoph Nenning : > Dear List, > > > a few month ago I asked a question how to deal with HTTP parameter names > like this: > > map['key with spaces'] > > Back then I was told I could

question about ParameterNameAware

2014-01-09 Thread Christoph Nenning
Dear List, a few month ago I asked a question how to deal with HTTP parameter names like this: map['key with spaces'] Back then I was told I could use ParameterNameAware. Now I had some time to look at this. But, well, it does not work as expected. The javadoc of ParametersI

Re: Question about Model Driven Interface

2013-10-15 Thread Amol Ghotankar
Hi Umesh, Both you mentioned are same. ModelDriven is best used to create new object if they do not exist. So your getModel method must be ProfileDTOModel md; public ProfileDTOModel getModel() { if(md != null)// Or Some other condition as required by your model. Typically check for Id

Question about Model Driven Interface

2013-10-15 Thread Umesh Awasthi
Hi All, Have rarely used model driven interface and not sure about how exactly it work. Can any one point me what will be difference between ProfileDTOModel md = new ProfileDTOModel(); publicProfileDTOModel getModel() { return md; } and public ProfileDTOModel getMod

Re: Question about "Form Validation Using XML" example

2013-10-04 Thread Antonio Sánchez
Same behavior in private mode. I believe it has to do with Prepare (preparable and exclude-paras use Preparable) and interceptors stack, but I'm not sure. Still a mystery for me, because the code is almost identical. El 02/10/2013 11:46 p.m., Lukasz Lenart escribió: Maybe your browser is fil

Re: Question about "Form Validation Using XML" example

2013-10-02 Thread Lukasz Lenart
Maybe your browser is filling the field and it has nothing to do with Struts validation? Check that in anonymous mode. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/10/2 Antonio Sánchez : > I can't see what's going on behind the scenes in this example so I'm asking > for hel

Question about "Form Validation Using XML" example

2013-10-02 Thread Antonio Sánchez
I can't see what's going on behind the scenes in this example so I'm asking for help in order to understand the Strtus process. I run the example, leave empty "First Name" to make validation fail, and submit. Then go back to index: http://localhost:8084/form_xml_validation and click on edit.

Re: question regarding dynamic number of form fields

2013-09-12 Thread Lukasz Lenart
It's because of restrictions in ParametersInterceptor - it doesn't allow keys with spaces as this can be potential malicious code. Check docs [1] and source [2] [1] http://struts.apache.org/development/2.x/docs/parameters-interceptor.html [2] https://svn.apache.org/repos/asf/struts/struts2/trunk/

question regarding dynamic number of form fields

2013-09-12 Thread Christoph Nenning
Dear List, we have some forms in our applications which contain a dynamic number of fields. Therefore we have a map as action member and generate HTTP parameter names like this: https://github.com/wolpi/struts2-samples/tree/master/mapparaspaces Could you please have a look at this? Regard

  1   2   3   4   5   6   7   8   9   10   >