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

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

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

Sample JSP using Error and Exception Values without exception.message

2025-05-30 Thread Ute Kaiser
Hi, 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? Best regards Ute - To u

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

error while uploading file using struts 7

2025-05-19 Thread Priyanka Vaddadi
Hi We are facing issue while uploading file with struts 7.0.0/ By using below code we are attaching the file on UI

Re: Issue with "Hello World Using Struts 2"

2023-12-08 Thread Dale Newfield
> > > > > > > Btw, I’m running on Java JDK 8. What’s a good fix for this? > > > > > > > > Thanks, > > > > > > > > Ron > > > > > > > > Ron Ruffin > > > > *Web Software Developer V, SSDA* &

Re: Issue with "Hello World Using Struts 2"

2023-12-08 Thread Dave Newton
this? > > > > Thanks, > > > > Ron > > > > Ron Ruffin > > *Web Software Developer V, SSDA* > > *Empower AI **(Formerly NCI)* > > Office: TBD | Mobile: 937.490.9754 > > *rruf...@empower.ai * > > > > > > *From:* Ruffin, R

Re: Issue with "Hello World Using Struts 2"

2023-12-08 Thread Dave Newton
023 at 11:06 AM Ruffin, Ronald > wrote: > >> Hi folks! >> >> >> >> I’m working my way through the basic Struts 2 tutorials, including “Hello >> World using Struts 2”, and although I think I have everything set up as the >> tutorial recommends, when I run

RE: Issue with "Hello World Using Struts 2"

2023-12-08 Thread Ruffin, Ronald
e.org Subject: RE: Issue with "Hello World Using Struts 2" Hi Struts folks!! Something else I saw strikes me as odd. I'm getting an issue with HelloWorldAction extending ActionSupport, where Netbeans isn't seeing where ActionSupport is defined, even though I've placed

Re: Issue with "Hello World Using Struts 2"

2023-12-08 Thread Dave Newton
I can't see the log4j.xml file so it's difficult to say why it might be failing parsing. On Fri, Dec 8, 2023 at 11:06 AM Ruffin, Ronald wrote: > Hi folks! > > > > I’m working my way through the basic Struts 2 tutorials, including “Hello > World using Struts 2”,

RE: Issue with "Hello World Using Struts 2"

2023-12-08 Thread Ruffin, Ronald
way to address this? Thanks, Ron Ron Ruffin Web Software Developer V, SSDA Empower AI (Formerly NCI) Office: TBD | Mobile: 937.490.9754 rruf...@empower.ai<mailto:rruf...@empower.ai> From: Ruffin, Ronald Sent: Friday, December 8, 2023 09:28 To: user@struts.apache.org Subject: Issue wi

Issue with "Hello World Using Struts 2"

2023-12-08 Thread Ruffin, Ronald
Hi folks! I'm working my way through the basic Struts 2 tutorials, including "Hello World using Struts 2", and although I think I have everything set up as the tutorial recommends, when I run the app in Jetty, I get the attached stack trace, and when I try to open it my bro

Re: Issue with ExecuteAndWait when using Spring Session (Redis)

2023-09-25 Thread Burton Rhodes
PM Subject Re: Issue with ExecuteAndWait when using Spring Session (Redis) Depending on your deployment architecture, this exec and wait may no longer be the right strategy. Yes, by managing the executor pool you can bound how many non-http-serving threads (jobs) are executing concurrently

Re: Issue with ExecuteAndWait when using Spring Session (Redis)

2023-09-24 Thread Dale Newfield
Depending on your deployment architecture, this exec and wait may no longer be the right strategy. Yes, by managing the executor pool you can bound how many non-http-serving threads (jobs) are executing concurrently on your web server's host, but it is all premised on using your own har

Re: Issue with ExecuteAndWait when using Spring Session (Redis)

2023-09-23 Thread Dale Newfield
rent hosts can't impact the timeout checks. Is it safe, even in the face of a network disconnection, so eventually the evicted leader can reappear? Would one of them detect the issue and kill itself?) -Dale > On Sep 23, 2023, at 4:23 PM, Burton Rhodes wrote: > > I am attempting

Issue with ExecuteAndWait when using Spring Session (Redis)

2023-09-23 Thread Burton Rhodes
I am attempting to implement a centralized session store to an existing application using Spring Session (Redis) and Struts. I have everything working on a basic level, but I am running into an issue when a Struts Action uses ExecuteAndWait. The refresh attempts don't seem to pick up

Re: Getting InstantiatingNullHandler exception while using Struts2.5.30

2023-02-13 Thread Lukasz Lenart
ion) call the error getting in the logs. > > > > > > On Mon, Feb 13, 2023 at 8:09 PM Dave Newton > > wrote: > > > > > > > And when does this happen? > > > > > > > > On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam > > > >

Re: Getting InstantiatingNullHandler exception while using Struts2.5.30

2023-02-13 Thread Swapna Ponnam
> > And when does this happen? > > > > > > On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam > > > wrote: > > > > > > > Hi, > > > > > > > > > > > > > > > > Getting InstantiatingNullHandler excep

Re: Getting InstantiatingNullHandler exception while using Struts2.5.30

2023-02-13 Thread Lukasz Lenart
pon., 13 lut 2023 o 15:48 Swapna Ponnam napisał(a): > > while hitting the backens (action) call the error getting in the logs. Do you mean the Back button in a browser? Regards -- Łukasz - To unsubscribe, e-mail: user-unsubsc

Re: Getting InstantiatingNullHandler exception while using Struts2.5.30

2023-02-13 Thread Dave Newton
n does this happen? > > > > On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam > > wrote: > > > > > Hi, > > > > > > > > > > > > Getting InstantiatingNullHandler exception while using Struts2.5.30. > > > Please help me on this. &

Re: Getting InstantiatingNullHandler exception while using Struts2.5.30

2023-02-13 Thread Swapna Ponnam
while hitting the backens (action) call the error getting in the logs. On Mon, Feb 13, 2023 at 8:09 PM Dave Newton wrote: > And when does this happen? > > On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam > wrote: > > > Hi, > > > > > > > > Getting I

Re: Getting InstantiatingNullHandler exception while using Struts2.5.30

2023-02-13 Thread Dave Newton
And when does this happen? On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam wrote: > Hi, > > > > Getting InstantiatingNullHandler exception while using Struts2.5.30. > Please help me on this. > > INFO [STDOUT] 10:21:48.145 [http-0.0.0.0-8443-3] ERROR &

Getting InstantiatingNullHandler exception while using Struts2.5.30

2023-02-13 Thread Swapna Ponnam
Hi, Getting InstantiatingNullHandler exception while using Struts2.5.30. Please help me on this. INFO [STDOUT] 10:21:48.145 [http-0.0.0.0-8443-3] ERROR com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler - Could not create and/or set value back on to object

Re: s:url tag using includeParams=all include invalid url

2022-10-12 Thread Łukasz Lenart
tions > are breaking using the standard recommended refresh implementation [1]. > The new tag code appends the "method" to the action file name > making the url invalid. So instead of "actionName.action" the result is > "actionName!methodName.action". I

Re: s:url tag using includeParams=all include invalid url

2022-10-10 Thread Burton Rhodes
After a bit more testing it seems all of my executeAndWait implementations are breaking using the standard recommended refresh implementation [1]. The new tag code appends the "method" to the action file name making the url invalid. So instead of "actionName.action" the r

s:url tag using includeParams=all include invalid url

2022-10-07 Thread Burton Rhodes
After upgrading to Struts 6.0.x, the format of the url returned when using includeParams seems to have changed. It now includes "!queue.action" which is causing issues in my application. I am using it during an executeAndWait call to refresh the page (using refresh logic in my javascript

Re: When using the ExecuteAndWait interceptor, is it possible to avoid calling prepare / validate methods on reloads?

2021-10-11 Thread Lukasz Lenart
pon., 11 paź 2021 o 16:26 Burton Rhodes napisał(a): > Thanks for the reply Lukasz. I thought about doing something like that, > but this page > https://struts.apache.org/core-developers/execute-and-wait-interceptor.html > mentions the ExecuteAndWait interceptor must be at the end of the stack. I

Re: When using the ExecuteAndWait interceptor, is it possible to avoid calling prepare / validate methods on reloads?

2021-10-11 Thread Burton Rhodes
Thanks for the reply Lukasz. I thought about doing something like that, but this page https://struts.apache.org/core-developers/execute-and-wait-interceptor.html mentions the ExecuteAndWait interceptor must be at the end of the stack. I guess you're saying that is not always the case. I'll give

Re: When using the ExecuteAndWait interceptor, is it possible to avoid calling prepare / validate methods on reloads?

2021-10-10 Thread Lukasz Lenart
czw., 7 paź 2021 o 16:16 Burton Rhodes napisał(a): > > Through a recent debugging session I realized that when refreshing a "wait" > page during an ExecuteAndWait process, it calls the action's prepare() and > validate() methods each time. For some reason I thought Struts > would immediately ident

When using the ExecuteAndWait interceptor, is it possible to avoid calling prepare / validate methods on reloads?

2021-10-07 Thread Burton Rhodes
Through a recent debugging session I realized that when refreshing a "wait" page during an ExecuteAndWait process, it calls the action's prepare() and validate() methods each time. For some reason I thought Struts would immediately identify the "waiting" Action, and if it wasn't finished, it would

Re: NPE using OpenSessionBackgroundProcess class

2021-01-26 Thread Burton Rhodes
Ahh... many thanks. On Tue, Jan 26, 2021 at 7:02 AM Lukasz Lenart wrote: > 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

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

Re: NPE using OpenSessionBackgroundProcess class

2021-01-26 Thread Burton Rhodes
Lukasz - Sorry if this is a dumb question, but where and how do I call the readObject() method that you suggested? On Tue, Jan 26, 2021 at 6:33 AM Burton Rhodes wrote: > Many thanks... I will give that a try! > > > On Tue, Jan 26, 2021 at 1:51 AM Lukasz Lenart > wrote: > >> pon., 25 sty 2021 o

Re: NPE using OpenSessionBackgroundProcess class

2021-01-26 Thread Burton Rhodes
Many thanks... I will give that a try! On Tue, Jan 26, 2021 at 1:51 AM Lukasz Lenart wrote: > pon., 25 sty 2021 o 19:52 Burton Rhodes > napisał(a): > > public class OpenSessionBackgroundProcess extends BackgroundProcess { > > BackgroundProcess is marked as Serializable so container can > tempo

Re: NPE using OpenSessionBackgroundProcess class

2021-01-26 Thread Martin Gainty
AFAIK Object does not implement Serializable is there an object your code can implement for lock object that implements Serializable? m- From: Burton Rhodes Sent: Monday, January 25, 2021 1:52 PM To: Struts Users Mailing List Subject: Re: NPE using

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 th

Re: NPE using OpenSessionBackgroundProcess class

2021-01-25 Thread Burton Rhodes
The complete class is below (and also here: https://pastebin.com/Z8QyTRzM). It extends org.apache.struts2.interceptor.BackgroundProcess which implements serializable. Do I need to explicitly implement? Or do you see anything else that might be the cause? Many thanks. package com.afs.web.common.

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

NPE using OpenSessionBackgroundProcess class

2021-01-21 Thread Burton Rhodes
I have an application that uses the OpenSessionBackgroundProcess class as described here: https://docs.huihoo.com/apache/struts/2.1.8/hibernateandspringenabledexecuteandwaitinterceptor.html It works fine the vast majority of the time, but every once in a while I get a NPE at the line "synchronized

[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 untr

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: URI too long error when using ExecuteAndWait interceptor

2020-11-21 Thread Burton Rhodes
I ended up replacing the tag refresh method with javascript that parses the "url" variable and recreates a element on the fly to submit via POST. On Fri, Nov 20, 2020 at 4:19 PM Burton Rhodes wrote: > I have a page that submits a form via POST and uses the ExecuteAndWait > interceptor. On the

URI too long error when using ExecuteAndWait interceptor

2020-11-20 Thread Burton Rhodes
I have a page that submits a form via POST and uses the ExecuteAndWait interceptor. On the "wait" jsp I have: "/> However, the includeParams "all" is including all the POST form variables (which there are many), and as a result, I am getting a "URI too long" exception. Is there an easy fix

Re: Validation using Struts2-spring

2020-06-04 Thread M Huzaifah
Validations Annotation. Thank You All > On 4 Jun 2020, at 12.00, M Huzaifah wrote: > > Hii Guys, > > i’am stuck with Validation in Struts2 using struts2-spring plugin. > struts version : 2.5.22 > spring version : 5.2.1.RELEASE > > my validators.xml in classpath: > &

Validation using Struts2-spring

2020-06-03 Thread M Huzaifah
Hii Guys, i’am stuck with Validation in Struts2 using struts2-spring plugin. struts version : 2.5.22 spring version : 5.2.1.RELEASE my validators.xml in classpath: http://struts.apache.org/dtds/xwork-validator-definition-1.0.dtd";> my struts.xml config form constan

Re: Invalid Field Value when using Map

2019-06-28 Thread Yasser Zamani
ob/651eac2c57396aa11ee65002006b3123dd69cbb4/core/src/main/java/com/opensymphony/xwork2/interceptor/ConversionErrorInterceptor.java#L118 >> >> >> >>> -Original Message- >>> From: Prasanth >>> Sent: Friday, June 21, 2019 6:27 PM >>> To: user@stru

Re: Invalid Field Value when using Map

2019-06-24 Thread Prasanth Pasala
bject: Re: Invalid Field Value when using Map Hi Yasser, The conversion error occurs when the field is not a map. I have a form with int/long fields, if the user enters non numeric value the form display error. The actions are validation aware and the control does come to validation method. It is i

RE: Invalid Field Value when using Map

2019-06-23 Thread Yasser Zamani
1, 2019 6:27 PM >To: user@struts.apache.org >Subject: Re: Invalid Field Value when using Map > >Hi Yasser, > >The conversion error occurs when the field is not a map. I have a form with >int/long fields, if the user enters non numeric value the form display error. > >The

Re: Invalid Field Value when using Map

2019-06-22 Thread Martin Gainty
, the element is specified using the * pattern Element_xxx, where xxx is the field name of the collection property in your action or object. For * Maps, both the key and the value may be specified by using the pattern Key_xxx and Element_xxx, * respectively. in your fuBar Class fuBar

Re: Invalid Field Value when using Map

2019-06-22 Thread Martin Gainty
From: jcyh24...@yahoo.ca.INVALID Sent: Saturday, June 22, 2019 12:47 AM To: user@struts.apache.org Subject: Re: Invalid Field Value when using Map Hi Prasanth. Do you have a small reproducer application available to demonstrate the behaviour ? There might be

Re: Invalid Field Value when using Map

2019-06-22 Thread jcyh24768
Maybe you can work-around the issue by providing explicit getters/setters using String values and perform direct type-conversions in those methods ? Maybe another user has a suggestion (and if there's a reproducer application can comment further). Regards, James. On 2019/06/17 16:21:55

Re: Invalid Field Value when using Map

2019-06-21 Thread Prasanth
value are not String! Regards. -Original Message- From: Prasanth Sent: Monday, June 17, 2019 8:52 PM To: Struts Users Mailing List Subject: Invalid Field Value when using Map Hi, I have a form that uses maps to store data as shown below. When the user enters valid numbers it wor

Re: Invalid Field Value when using Map

2019-06-20 Thread Yasser Zamani
gt; >>> -Original Message- >>> From: Prasanth >>> Sent: Monday, June 17, 2019 8:52 PM >>> To: Struts Users Mailing List >>> Subject: Invalid Field Value when using Map >>> >>> Hi, >>> >>> I have a form that use

Re: Invalid Field Value when using Map

2019-06-19 Thread Prasanth Pasala
your map while both key and value are not String! Regards. -Original Message- From: Prasanth Sent: Monday, June 17, 2019 8:52 PM To: Struts Users Mailing List Subject: Invalid Field Value when using Map Hi, I have a form that uses maps to store data as shown below. When the user e

RE: Invalid Field Value when using Map

2019-06-18 Thread Yasser Zamani
Hi Prasanth, I'm surprised how you get non digit characters in your map while both key and value are not String! Regards. >-Original Message- >From: Prasanth >Sent: Monday, June 17, 2019 8:52 PM >To: Struts Users Mailing List >Subject: Invalid Field Value when u

Invalid Field Value when using Map

2019-06-17 Thread Prasanth
Hi, I have a form that uses maps to store data as shown below. When the user enters valid numbers it works as expected, but when user enters non digit characters in the text field a String object is saved in the map rather than showing a "Invalid field value for field " message which is done for

[ANN] A crafted XML request can be used to perform a DoS attack when using the Struts REST plugin

2018-03-27 Thread Lukasz Lenart
The Apache Security Struts Team recommends to immediately upgrade your Struts 2 based projects to use the latest released version of the Apache Struts. This is necessary to prevent your publicly accessible web site, which is using the Struts REST plugin and performing XML serialisation, from being

Re: How to share tiles while using both struts 1 and struts 2 during migration?

2017-10-05 Thread ss2...@cornell.edu
Tiles Filter > > org.apache.tiles.web.startup.TilesFilter > > true > > > > > > > > Tiles Filter > > /* > > REQUEST,FORWARD,ASYNC > > > > > > > > > > org.apache.struts2.tiles.StrutsTilesL

Re: How to share tiles while using both struts 1 and struts 2 during migration?

2017-10-04 Thread Lukasz Lenart
.tiles.StrutsTilesListener > > > > Please let me know how to configure correctly so that I can use both s1 and > s2 during migration so that we can test functionality as we migrate each > module. This is not possible as far I know, both Struts versions using different

How to share tiles while using both struts 1 and struts 2 during migration?

2017-10-03 Thread ss2...@cornell.edu
Hello, I have a struts app which uses both struts 1 and struts 2. While we are migrating slowly and trying to remove all struts 1 stuff, we want to share tiles during the migration process across both s1 and s2. While there is enough documentation demonstrating how to use various versions of pl

Re: Limitations using Struts2-conventions-plugin (lack of multiple configuration roots)

2017-07-12 Thread Ken McWilliams
o be the case but in terms of user > > experience, it's a bit of a pain and if you want both your conventions > AND > > the rest plugin, you find yourself being stuck (like an under-inflated > > balloon animal, you can choose to have the head inflated of the tail, but &g

Re: Limitations using Struts2-conventions-plugin (lack of multiple configuration roots)

2017-07-10 Thread Lukasz Lenart
not both). > > This is one possible way to solve the issue: > - Create a new interceptor called "PackageConfigurationInterceptor"; since > interceptors are instantiated once per package they have the scope that I > would expect. > - When using conventions sc

Re: Limitations using Struts2-conventions-plugin (lack of multiple configuration roots)

2017-06-23 Thread Ken McWilliams
ackageConfigurationInterceptor"; since interceptors are instantiated once per package they have the scope that I would expect. - When using conventions scan for the existence of this interceptor, if found use it's beans and constants in place of the global ones. ===

Re: Limitations using Struts2-conventions-plugin (lack of multiple configuration roots)

2017-06-22 Thread Lukasz Lenart
2017-06-22 2:45 GMT+02:00 Ken McWilliams : > Sure, doing Struts2/Shiro integration at the moment. Will come back to > this, it was a rant from running into issues when setting up some personal > demo projects. The limitation from one static configuration to cover all > conventions (which really jus

Re: Limitations using Struts2-conventions-plugin (lack of multiple configuration roots)

2017-06-21 Thread Ken McWilliams
h a "convention". Now the plugin > >>> certainly does this in the *singular* but say I want restful services > >>> handled by conventions, and then I want perhaps a set of packages to > >>> contain public documents, and another set of packages to require s

Re: Limitations using Struts2-conventions-plugin (lack of multiple configuration roots)

2017-06-21 Thread Adam Brin
say I want restful services >>> handled by conventions, and then I want perhaps a set of packages to >>> contain public documents, and another set of packages to require some >> form >>> of security but also follow some sort of conventions... well I find it >>>

Re: Limitations using Struts2-conventions-plugin (lack of multiple configuration roots)

2017-06-21 Thread Ken McWilliams
ions, and then I want perhaps a set of packages to > > contain public documents, and another set of packages to require some > form > > of security but also follow some sort of conventions... well I find it > > impossible to use the conventions plugin and need to resort to addi

Re: Limitations using Struts2-conventions-plugin (lack of multiple configuration roots)

2017-06-20 Thread Lukasz Lenart
resort to additional > configuration. Creating packages in struts.xml, or using XML to override > the conventions. > > Do you think it would be reasonable to have the conventions plugin, create > a new configuration interceptor for which all the constants (package level > constant

Limitations using Struts2-conventions-plugin (lack of multiple configuration roots)

2017-06-20 Thread Ken McWilliams
ackages to contain public documents, and another set of packages to require some form of security but also follow some sort of conventions... well I find it impossible to use the conventions plugin and need to resort to additional configuration. Creating packages in struts.xml, or using XML to ov

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-11 Thread developer researcher
Of course Adam, If no solution is found by configuration, there is to try other alternatives without the json-plugin. As you indicate using the stream result. Thanks and regards. 2017-05-09 17:52 GMT-05:00 Adam Brin : > Hi, > I don't use the JSON plugin. My suggestion is, you

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-09 Thread Adam Brin
Hi, I don't use the JSON plugin. My suggestion is, you're using a number of tools in a chain, one isn't working, so what's the minimum viable way out? Clearly something with the JSON plugin isn't working, so try and verify where the problem is and work around it. A

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-09 Thread Martin Gainty
, May 9, 2017 8:05 AM To: Struts Users Mailing List Subject: Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin MG>below From: developer researcher Sent: Monday, May 8, 2017 10:14 PM To: Struts Users Mailing List Subject: Re: Probl

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-09 Thread developer researcher
and Spring AOP proxies. On the other hand, when you say "*We just set content-type to application json*" Are you using json-plugin? In my case I have used both "text/html" and "application/json" (using json-plugin) but in both cases the serialization is execute

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-09 Thread Martin Gainty
MG>below From: developer researcher Sent: Monday, May 8, 2017 10:14 PM To: Struts Users Mailing List Subject: Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin Hello Adam, Yes, I am using the "ignoreInterfaces" p

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-08 Thread Adam Brin
rcher < java.developer.researc...@gmail.com> wrote: > Hello Adam, > > Yes, I am using the "ignoreInterfaces" param set to "false". My result is: > "@Result(name="success",type="json", params={"contentType", "text/html&quo

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-08 Thread developer researcher
Hello Adam, Yes, I am using the "ignoreInterfaces" param set to "false". My result is: "@Result(name="success",type="json", params={"contentType", "text/html", "ignoreInterfaces", "false"})" The file "

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-08 Thread Adam Brin
Hi, I presume you’ve read this: https://struts.apache.org/docs/json-plugin.html#JSONPlugin-Proxiedobjects It may be that the issue is not Struts2, but the JSON library that the Struts2 Json plugin uses… and thus, you may need to handle the JSON serialization using Jackson or another library

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-08 Thread developer researcher
Hello Martin, First of all thanks for the reply, but I'm not sure if my queries have been understood. I am using Struts 2.5.10.1 My main query is: *Is there a way to use Spring AOP in Struts2 Actions using the "JDK dynamic proxies"? Does anyone have an example?* Sorry, but I c

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-06 Thread Martin Gainty
MG>below From: developer researcher Sent: Friday, May 5, 2017 10:09 PM To: Struts Users Mailing List Subject: Problem using the Spring's AOP in Struts2's Actions with json-plugin Hello, I am using Strust 2 with spring-plugin and json-plug

Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-05 Thread developer researcher
Hello, I am using Strust 2 with spring-plugin and json-plugin to use: 1. Injection of dependencies: apparently everything is working well. 2. Spring's AOP: works when applied over methods of injected objects in the Struts Actions but not when applied over methods of actions (my class ex

Re: Load Message from database using ResourceBundle

2017-03-24 Thread Lukasz Lenart
label2 | Your Last Name| > > > then I would like to get Your First Name band Your Last Name through > app.label1 and app.label2 using a JSP ( i use struts 2 frameworks ) that > might look like this. > > > > > those text fields should populate with Your First Name

Re: Load Message from database using ResourceBundle

2017-03-23 Thread Adam Brin
ooks like this : >> >> | ID |KEY | MESSAGE | >> | 1 | app.label1 | Your First Name | >> | 2 | app.label2 | Your Last Name| >> >> >> then I would like to get Your First Name band Your Last Name through >> app.l

Re: Load Message from database using ResourceBundle

2017-03-23 Thread Snowball RC
app.label2 | Your Last Name| > > > then I would like to get Your First Name band Your Last Name through > app.label1 and app.label2 using a JSP ( i use struts 2 frameworks ) that > might look like this. > > > > > those text fields should populate with

Load Message from database using ResourceBundle

2017-03-23 Thread rifqiyusuf
Your Last Name through app.label1 and app.label2 using a JSP ( i use struts 2 frameworks ) that might look like this. those text fields should populate with Your First Name and Your last Name without requiring *.properties file. if anyone know how to do this , please let me know. Than

Re: Using tiles 2 with struts 1

2017-03-13 Thread Kokkodan Venu
This is very urgent This is regarding a project upgrade where I need to stick with Struts 1 and I need Tiles 2 as the Spring framework is getting upgraded. if you have already built the struts-tiles2-1.4.0-SNAPSHOT.jar can you pls send the same to me? I also have a very different upgrade here.

Re: issue with getting current date using date tag in latest struts 2.3.3X

2017-03-13 Thread Christoph Nenning
017 00:21 > Subject: Re: issue with getting current date using date tag in > latest struts 2.3.3X > > Hi Dave, > it was working find from earlier version, here is the discussion > thread from coderanch. > formatDate & i18nInt

Re: issue with getting current date using date tag in latest struts 2.3.3X

2017-03-10 Thread Vishal Jhagadiawala
age I am using > > it shows no value in the UI page. > Question: was there usage of OGNL expression changed in latest version of > struts2. eg. 2.3.30,  the above usage works without issue in Struts2 2.2.1 > any help would be appreciated. > > Regards, > Vishal -- e: davel

Re: issue with getting current date using date tag in latest struts 2.3.3X

2017-03-10 Thread Dave Newton
I'm surprised that worked, since it's supposed to be the name of the date property you want to display. Maybe it was introspecting to see if it was an immediate date value, but that's deceptive and counter-intuitive. In any case, that's a large version jump. OGNL was updated multiple times. If I w

Re: issue with getting current date using date tag in latest struts 2.3.3X

2017-03-10 Thread Lukasz Lenart
above usage works without issue in Struts2 2.2.1 > any help would be appreciated. Yes, you should see an error message in the logs, using "new" in expressions is not allowed. http://struts.apache.org/docs/security.html#Security-Internalsecuritymechanism Regards -- Łukasz + 48 606 3

issue with getting current date using date tag in latest struts 2.3.3X

2017-03-10 Thread Vishal Jhagadiawala
Hi,I am having issue with following date tag, after upgrading to struts 2.3.30 it shows no value in the UI page.  Question: was there usage of OGNL expression changed in latest version of struts2. eg. 2.3.30,  the above usage works without issue in Struts2 2.2.1 any help would be appreciated. R

Re: Multiple Submit Buttons in Same Form using Jquery/Ajax

2016-06-27 Thread Guilherme Bisconcini
Worked, thank you very much! On Fri, Jun 24, 2016 at 12:05 PM, Johannes Geppert wrote: > Looks like you are using the Stuts jQuery Plugin. > You can specify th action url on this button itself. > > See example in the Showcase (AJAX/Form/AJAX Forms) > http://struts.jgeppert.com

Re: Struts2 & Spring using child web application context

2016-06-26 Thread Sreekanth S. Nair
How you are packaging these two web applications ? as an EAR ? or independent WAR running inside a we container ? On Sun, Jun 26, 2016 at 9:47 PM, Chris Cranford < chris.cranf...@setechusa.com> wrote: > Has anyone been able to leverage the struts2-spring-plugin and running it > within a child co

Struts2 & Spring using child web application context

2016-06-26 Thread Chris Cranford
Has anyone been able to leverage the struts2-spring-plugin and running it within a child context? I am looking into the possibility of something like the following: +- Root Application Context (global services, repositories, etc) +- Web Application Context1 (used by struts2 actions)

Re: Multiple Submit Buttons in Same Form using Jquery/Ajax

2016-06-24 Thread Johannes Geppert
Looks like you are using the Stuts jQuery Plugin. You can specify th action url on this button itself. See example in the Showcase (AJAX/Form/AJAX Forms) http://struts.jgeppert.com/struts2-jquery-showcase/index.action AJAX Form Echo

Multiple Submit Buttons in Same Form using Jquery/Ajax

2016-06-23 Thread Guilherme Bisconcini
Hi, I have spent about 3 hours trying to do Multiple Submit Buttons in same form using Jquery/Ajax. I have tried https://struts.apache.org/docs/multiple-submit-buttons.html without success. I'm using Jquery with struts, so I think thats why it doens't work? because my Struts is: 2.

Re: Security vulnerabilities on using strut2-struts1-plugin-2.3.28.1

2016-05-06 Thread Christoph Nenning
gin-2. > 3.28.1.jar in our system and for any new development we are planning > to use Struts 2 framework. > With regard to this, we have the following queries:-1)If we are > using this plugin would security vulnerabilities reported on struts > 1.x, struts 2.x get mitigated since w

Security vulnerabilities on using strut2-struts1-plugin-2.3.28.1

2016-05-06 Thread vivek verma
system and for any new development we are planning to use Struts 2 framework. With regard to this, we have the following queries:-1)If we are using this plugin would security vulnerabilities reported on struts 1.x, struts 2.x get mitigated since we would be using struts 2.3.28 to handle the incoming

Re: Problem using TypeConverters with SelectTag

2016-03-08 Thread Lukasz Lenart
list of values in the action as follows: > > public class RecordPk { > private Long field1; > private Long field2; > } > > public class MyAction { > private Map choices = new LinkedHashMap String>(); > private RecordPk selection; > } > > > >

Is using the struts.mapper.action.prefix.enabled safe?

2016-01-01 Thread Gavin Donald
Hello, While upgrading Struts from 2.3.15 I came across the information that DMI is disabled. at http://tinyurl.com/zaveghr it states that I can use /struts.mapper.action.prefix.enabled/ and that works for my use case. I am however a little unclear if it is safe to use or if it simply enables

Re: Validation using annotations with two execute methods are applied always

2015-12-17 Thread Łukasz Lenart
What about switching validateAnnotatedMethodOnly? This is going to be default in 2.5 probably https://struts.apache.org/docs/validations-annotation.html (mobile) 17 gru 2015 23:29 "JOSE L MARTINEZ-AVIAL" napisał(a): > Hello, > I'm using Struts 2.3.24.1. I have a

  1   2   3   4   5   6   7   8   9   10   >