Re: Struts 2.x branch EOL

2022-09-26 Thread Lukasz Lenart
niedz., 25 wrz 2022 o 18:30 Pierre-Yves Soblet napisał(a): > If my understanding is correct, Struts 6.x has stronger requirements in terms > of Java EE version than Struts 2.x. As Java/Jakarta Servlet API 3.1 is > required (as stated in > https://cwiki.apache.org/confluence/display/WW/Version+N

Re: struts 2 with OpenJDK 11

2018-10-17 Thread Lukasz Lenart
wt., 16 paź 2018 o 11:44 Britta Katzenbach napisał(a): > Thank you for the information! As the bug entry is a year old, do you have > any perspective when this will be solved? I hope it will be soon, we are now moving all our effort to work on Struts 2.6 and release a new version in 2-3 months.

Re: struts 2 with OpenJDK 11

2018-10-16 Thread Britta Katzenbach
Thank you for the information! As the bug entry is a year old, do you have any perspective when this will be solved? Best regards, Britta Britta Katzenbach _ e-Mail: katzenb...@liwa.de Tel. +49 30 27019889 Dr. Lippke & Dr. Wagner GmbH Nassau

Re: struts 2 with OpenJDK 11

2018-10-16 Thread Lukasz Lenart
Switching to ASM 6 should resolve the issue but this isn't a drop-in upgrade, we will have to change some code on Struts side. https://issues.apache.org/jira/browse/WW-4866 Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ wt., 16 paź 2018 o 09:49 Britta Katzenbach napisał(a): > >

Re: Struts 2

2018-06-22 Thread Yasser Zamani
Hello, try browser's developer tools. Open it's network and console tab and then click your add button. Then see if any JavaScript error is in console. Then check network tab and see what's the response for your server action call. I hope these help ☺ Regards. On Jun 22, 2018, at 2:25 AM, Debor

Re: Struts 2

2018-06-22 Thread Martin Gainty
gentData ? what does processRegistrationDetails method do ? M __ From: Arjuna Bandara Sent: Friday, June 22, 2018 12:34 PM To: Struts Users Mailing List Subject: Re: Struts 2 Hi, If you using dojo, you need to in

RE: Struts 2

2018-06-22 Thread Deborah White
I was looking in the wrong place. Using jquery. -Original Message- From: Arjuna Bandara [mailto:arjunab...@gmail.com] Sent: Friday, June 22, 2018 9:35 AM To: Struts Users Mailing List Subject: Re: Struts 2 Hi, If you using dojo, you need to include dojo tag headers. Also keep in mind

Re: Struts 2

2018-06-22 Thread Arjuna Bandara
ake it outside of this email thread? > > -Original Message- > From: Arjuna Bandara [mailto:arjunab...@gmail.com] > Sent: Thursday, June 21, 2018 6:28 PM > To: Struts Users Mailing List > Subject: Re: Struts 2 > > Hi, > > What's your expected output. And the

RE: Struts 2

2018-06-22 Thread Deborah White
? -Original Message- From: Arjuna Bandara [mailto:arjunab...@gmail.com] Sent: Thursday, June 21, 2018 6:28 PM To: Struts Users Mailing List Subject: Re: Struts 2 Hi, What's your expected output. And the falt? Do you use dojo plugin? On Fri, Jun 22, 2018, 3:25 AM Deborah White

Re: Struts 2

2018-06-21 Thread Arjuna Bandara
Hi, What's your expected output. And the falt? Do you use dojo plugin? On Fri, Jun 22, 2018, 3:25 AM Deborah White wrote: > Hello, I'm hoping someone with more experience can help me with this. > When I do the file upload, it uploads the file and returns to the page (but > it looks like it b

Re: Struts 2 - struts 1 plugin support for struts 2.5.15

2018-03-28 Thread Lukasz Lenart
2018-03-28 15:38 GMT+02:00 dineshbabu...@gmail.com : > Hi, > I need some information about struts2 - struts1 plugin. > > 1.Will it be maintained for long time else is it intended for use till > migration from struts1? > 2.Will it work with struts 2.5 and future versions? Nope, it's al

Re: Struts 2 JSP Taglib error

2017-10-24 Thread Martin Gainty
From: Christoph Nenning Sent: Tuesday, October 24, 2017 7:40 AM To: Struts Users Mailing List Subject: Re: Struts 2 JSP Taglib error Hi, I have often seen this when application included something jsp-api.jar or jee-api.jar (other filenames are possible

Re: Struts 2 JSP Taglib error

2017-10-24 Thread Christoph Nenning
Hi, I have often seen this when application included something jsp-api.jar or jee-api.jar (other filenames are possible). That means Serlvet-Container as another jar containing javax.servlet.jsp.tagext.Tag then application which causes that ClassCastException. Regards, Christoph > From: "r

Re: Struts 2 JSP Taglib error

2017-10-24 Thread Yasser Zamani
On 10/24/2017 10:10 AM, ravirajmishr...@gmail.com wrote: > java.lang.ClassCastException: org.apache.tiles.jsp.taglib.UseAttributeTag > cannot be cast to javax.servlet.jsp.tagext.Tag There are several possible things. Please search the web for "cannot be cast to javax.servlet.jsp.tagext.Tag" th

Re: Struts 2 and Spring 4, how to get the validator or action object from spring application context

2016-09-26 Thread Lukasz Lenart
2016-09-26 11:22 GMT+02:00 Alireza Fattahi : > We are using Struts 2.5 and spring 4. The struts is configured spring as > mentioned in https://struts.apache.org/docs/spring-and-struts-2.html. > > The struts `actions` and `validators` are spring managed beans and I can > `inject` ( or `autowire`)

Re: Struts 2 and ASM jar version

2016-09-22 Thread Adam Brin
desk: 416 944 6187 cell: 647 835 3067 > e-mail: krunal.dhame...@tdsecurities.com > > -Original Message- > From: Adam Brin [mailto:ab...@digitalantiquity.org] > Sent: Thursday, September 22, 2016 10:15 AM > To: Struts Users Mailing List > Subject: Re: Struts 2 and ASM

RE: Struts 2 and ASM jar version

2016-09-22 Thread Dhamelia, Krunal
– 9th floor, Toronto, Ont, M5H 3P5 desk: 416 944 6187 cell: 647 835 3067 e-mail: krunal.dhame...@tdsecurities.com -Original Message- From: Adam Brin [mailto:ab...@digitalantiquity.org] Sent: Thursday, September 22, 2016 10:15 AM To: Struts Users Mailing List Subject: Re: Struts 2 and ASM

Re: Struts 2 and ASM jar version

2016-09-22 Thread Adam Brin
Hi Krunal, I looked at this issue similarly in our own code, the answer is “it depends.” The convention plugin in Struts 2.5 appears to be the only part of the codebase that seems to use ASM, so, you might be able to omit the dependency if you’re not using that plugin. Alternately, we’ve had

Re: Struts 2 and ASM jar version

2016-09-22 Thread Lukasz Lenart
You can use the Java 8 Support plugin but it was available since 2.3.21 http://struts.apache.org/docs/java-8-support-plugin.html or migrate to Struts 2.5.3 (should be available soon) 2016-09-22 15:29 GMT+02:00 Dhamelia, Krunal : > Hi, > I am using Struts2 v2.3.16 and that has dependency on asm3.3

Re: Struts 2: running processes/threads in background

2016-07-18 Thread Lukasz Lenart
2016-07-18 16:35 GMT+02:00 Martin Gainty : >> "execAndWait" result should be sufficient for your usecase. I was >> wondering if implementing something based on actors would make sense >> but not sure if this will play nicely with Servlets. > MG>could this be a solution to run struts with a Mock Dis

RE: Struts 2: running processes/threads in background

2016-07-18 Thread Martin Gainty
> From: lukaszlen...@apache.org > Date: Mon, 18 Jul 2016 07:49:28 +0200 > Subject: Re: Struts 2: running processes/threads in background > To: user@struts.apache.org > > Hi, > > "execAndWait" result should be sufficient for your usecase. I was > wonderi

Re: Struts 2: running processes/threads in background

2016-07-17 Thread Lukasz Lenart
Hi, "execAndWait" result should be sufficient for your usecase. I was wondering if implementing something based on actors would make sense but not sure if this will play nicely with Servlets. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2016-07-17 22:13 GMT+02:00 Adam Brin : >

Re: Struts 2: running processes/threads in background

2016-07-17 Thread Adam Brin
Execute and Wait would definitely work. Alternately, if you're using Spring in the background you could use their @Async methodology for simple multi-threading, and just leave Struts for basic AJAX calls to start and check status. On Sun, Jul 17, 2016 at 8:37 AM, Peter Hilzbrich wrote: > Hello,

Re: Struts 2 'top' object in struts 2.5

2015-09-28 Thread Lukasz Lenart
2015-09-28 16:19 GMT+02:00 Alireza Fattahi : > > According to http://struts.apache.org/docs/s2-026.html : > Support for expression using top will be dropped in upcoming Struts version > 2.5! > We used the top object in lots of jsp pages as below (which shows a list of > currencyTypes and look up

Re: Struts 2 'top' object in struts 2.5

2015-09-28 Thread Alireza Fattahi
Also Asked at:  http://stackoverflow.com/questions/32816417/struts-2-top-object-in-struts-2-5  ~Regards, ~~Alireza Fattahi From: Alireza Fattahi To: Struts Users Mailing List Sent: Monday, 28 September 2015, 17:49 Subject: Struts 2 'top' object in struts 2.5 According to http://

Re: STruts 2 - populating an ArrayList from the JSP

2015-05-19 Thread Preetham Mallavarapu
Thanks Christoph Nenning. I found the issue.. Thanks once again. On Mon, May 18, 2015 at 5:50 PM, Christoph Nenning < christoph.nenn...@lex-com.net> wrote: > Try to use browser dev tools to debug your post request. Make sure the > parameter names are correct. > > > > > > > > Can you guys help m

Re: STruts 2 - populating an ArrayList from the JSP

2015-05-18 Thread Christoph Nenning
Try to use browser dev tools to debug your post request. Make sure the parameter names are correct. > > Can you guys help me on this issue? > > Thanks > > On Sat, May 16, 2015 at 12:47 PM, Preetham Mallavarapu < > preethamreddy.mallaar...@gmail.com> wrote: > > > Hi, > > > > I have a proble

Re: STruts 2 - populating an ArrayList from the JSP

2015-05-16 Thread Preetham Mallavarapu
Can you guys help me on this issue? Thanks On Sat, May 16, 2015 at 12:47 PM, Preetham Mallavarapu < preethamreddy.mallaar...@gmail.com> wrote: > Hi, > > I have a problem while accessing the arraylist from jsp in my action > class... > > when I tried to submit the data it isnot returning any valu

Re: Struts 2 manually call a custom validation in an action

2015-05-05 Thread Christoph Nenning
> Please see: http://stackoverflow.com/questions/29603916/struts-2- > manually-call-a-custom-validation-in-an-action ~Regards, > ~~Alireza Fattahi > From: Alireza Fattahi > To: Struts Mailing List > Sent: Monday, 13 April 2015, 16:40 > Subject: Struts 2 manually call a custom validation

Re: Struts 2 manually call a custom validation in an action

2015-04-14 Thread Alireza Fattahi
Please see: http://stackoverflow.com/questions/29603916/struts-2-manually-call-a-custom-validation-in-an-action  ~Regards, ~~Alireza Fattahi From: Alireza Fattahi To: Struts Mailing List Sent: Monday, 13 April 2015, 16:40 Subject: Struts 2 manually call a custom validation in an action

Re: Struts 2 'redirectAction' changes protocol from HTTPS to HTTP

2014-12-16 Thread Sreekanth S. Nair
As far as i know it wont be struts2 problem probably you have to look into your security config, how you are handling http https route ? i can tell you, we were using strust2 2.3.15.1 distribution with lots of redirectResult without any trouble (we have the similar login https others http route).

Re: Struts 2 support of Java 8

2014-12-14 Thread Lukasz Lenart
Yeah... I would like to eliminate ASM from dependencies but I must find some substitution ;-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2014-12-14 20:29 GMT+01:00 Paweł Wielgus : > Hi Łukasz, > looking through ASM releases > i see that one would need version >= 5.0 to have Ja

Re: Struts 2 support of Java 8

2014-12-14 Thread Paweł Wielgus
Hi Łukasz, looking through ASM releases i see that one would need version >= 5.0 to have Java8 full support: http://forge.ow2.org/forum/forum.php?forum_id=2302 and in Struts 2.3.16 there is ASM in 3.3 version. So maybe it's realy that simple :-) I just hope it won't breake to much in current cod

Re: Struts 2 support of Java 8

2014-12-14 Thread Lukasz Lenart
2014-12-14 19:14 GMT+01:00 Paweł Wielgus : > Hi Łukasz, > registered as: > https://issues.apache.org/jira/browse/WW-4431 > if anything more is needed just let me know and i will add all > necessary information. Thanks a lot! I think we just must switch to newer version of ASM :) Regards -- Łuka

Re: Struts 2 support of Java 8

2014-12-14 Thread Paweł Wielgus
gt;>>> Pozdrawiam, >>>> Paweł Wielgus. >>>> tel: +48 604 603 546 >>>> >>>> >>>> 2014-12-11 3:07 GMT+01:00 Greg Lindholm : >>>> > I'm using Java 8 with Struts 2 and have had no issues. >>>> > >

Re: Struts 2 support of Java 8

2014-12-13 Thread Lukasz Lenart
; 2014-12-11 3:07 GMT+01:00 Greg Lindholm : >>> > I'm using Java 8 with Struts 2 and have had no issues. >>> > >>> > On Wed, Dec 10, 2014 at 1:00 PM, Schlachter, Gary < >>> > gary.schlach...@sensus.com> wrote: >>> > >>> >> Yes, it is

Re: Struts 2 support of Java 8

2014-12-11 Thread Paweł Wielgus
Lindholm : >> > I'm using Java 8 with Struts 2 and have had no issues. >> > >> > On Wed, Dec 10, 2014 at 1:00 PM, Schlachter, Gary < >> > gary.schlach...@sensus.com> wrote: >> > >> >> Yes, it is a Spring 3.1. >> >> &g

Re: Struts 2 support of Java 8

2014-12-11 Thread Ken McWilliams
> > >> Yes, it is a Spring 3.1. > >> > >> -Original Message- > >> From: Dave Newton [mailto:davelnew...@gmail.com] > >> Sent: Wednesday, December 10, 2014 12:58 PM > >> To: Struts Users Mailing List > >> Subject: Re: Struts

Re: Struts 2 support of Java 8

2014-12-10 Thread Paweł Wielgus
new...@gmail.com] >> Sent: Wednesday, December 10, 2014 12:58 PM >> To: Struts Users Mailing List >> Subject: Re: Struts 2 support of Java 8 >> >> Are you using Spring? >> >> This looks like the JavaBeans naming convention wasn't followed. >> &

Re: Struts 2 support of Java 8

2014-12-10 Thread Greg Lindholm
December 10, 2014 12:58 PM > To: Struts Users Mailing List > Subject: Re: Struts 2 support of Java 8 > > Are you using Spring? > > This looks like the JavaBeans naming convention wasn't followed. > > On Wed, Dec 10, 2014 at 12:51 PM, Schlachter, Gary < > gary.schla

RE: Struts 2 support of Java 8

2014-12-10 Thread Schlachter, Gary
Yes, it is a Spring 3.1. -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Wednesday, December 10, 2014 12:58 PM To: Struts Users Mailing List Subject: Re: Struts 2 support of Java 8 Are you using Spring? This looks like the JavaBeans naming convention wasn&#

Re: Struts 2 support of Java 8

2014-12-10 Thread Dave Newton
o:lukaszlen...@apache.org] > Sent: Wednesday, December 10, 2014 12:44 PM > To: Struts Users Mailing List > Subject: Re: Struts 2 support of Java 8 > > 2014-12-10 18:37 GMT+01:00 Schlachter, Gary : > > I have spent time searching and could not find a definitely answer on > whe

Re: Struts 2 support of Java 8

2014-12-10 Thread Ken McWilliams
I'm using struts2 with Java 8 without issues. It will be awhile before struts2 will *require* Java 8, being a popular framework in the business world, accessibility is highly valued. On Wed, Dec 10, 2014 at 10:43 AM, Lukasz Lenart wrote: > 2014-12-10 18:37 GMT+01:00 Schlachter, Gary : > > I have

RE: Struts 2 support of Java 8

2014-12-10 Thread Schlachter, Gary
ge- From: Lukasz Lenart [mailto:lukaszlen...@apache.org] Sent: Wednesday, December 10, 2014 12:44 PM To: Struts Users Mailing List Subject: Re: Struts 2 support of Java 8 2014-12-10 18:37 GMT+01:00 Schlachter, Gary : > I have spent time searching and could not find a definitely answer on wheth

Re: Struts 2 support of Java 8

2014-12-10 Thread Lukasz Lenart
2014-12-10 18:37 GMT+01:00 Schlachter, Gary : > I have spent time searching and could not find a definitely answer on whether > or not Struts 2.3 support Java 8. In what version of Struts is Java 8 > supported? What you mean by "supported"? There are few issues that directly target JDK8 but S2

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Lukasz Lenart
2014-11-05 13:41 GMT+01:00 Pavel Ilyushko : > Hi there! > > Thanks for a swift reply. > > Actually, re-defining the root is what I applied as a work-around. > > So in my struts.xml I have this (to fix setting the parameters on the > action): > > > action >

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Pavel Ilyushko
Hi there! Thanks for a swift reply. Actually, re-defining the root is what I applied as a work-around. So in my struts.xml I have this (to fix setting the parameters on the action): action and also for each json action type I have this (to

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Łukasz Lenart
You can redefine root http://struts.apache.org/release/2.3.x/docs/json-plugin.html#JSONPlugin-RootObject 2014-11-05 12:13 GMT+01:00 Pavel Ilyushko : > Hello there! > > Recently I've upgraded our struts2 framework and its related plugins (eg: > json plugin) from version 2.1.8 to version 2.3.16.3.

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Lukasz Lenart
You can re-define root http://struts.apache.org/release/2.3.x/docs/json-plugin.html#JSONPlugin-RootObject 2014-11-05 12:13 GMT+01:00 Pavel Ilyushko : > Hello there! > > Recently I've upgraded our struts2 framework and its related plugins (eg: > json plugin) from version 2.1.8 to version 2.3.16.3.

Re: Struts 2 and automatic ids

2014-10-08 Thread Christoph Nenning
> I was wondering what the proper solution should be and didn't find any :\ > > You can always add id attribute your self - this should work > > > value="%{groupValues[#user.id]}" /> > > but it means we shouldn't autogenerate IDs which can break few things :/ Every time I see those autogene

Re: Struts 2 and automatic ids

2014-10-07 Thread Lukasz Lenart
I was wondering what the proper solution should be and didn't find any :\ You can always add id attribute your self - this should work but it means we shouldn't autogenerate IDs which can break few things :/ 2014-09-21 14:15 GMT+02:00 Heikki Hyyrö : > Lukasz Lenart kirjoitti 21.9.2014 kello

Re: Struts 2 and automatic ids

2014-09-21 Thread Heikki Hyyrö
Lukasz Lenart kirjoitti 21.9.2014 kello 11.48: > Can you prepare some exact example app? Would the example snippet at the bottom be enough? It shows a slightly cleaned version of one form we use. The form basically consists of a table that lists the users of the system. Each user can be assign

Re: Struts 2 and automatic ids

2014-09-21 Thread Lukasz Lenart
2014-09-11 1:13 GMT+02:00 Heikki Hyyrö : > Hi all, > > I recently began to audit a Struts 2.3.16.1 application that I am > maintaining. While running the pages through the HTML markup validation test > at http://validator.w3.org/, I noticed a problem: Struts 2 seems to > automatically generate i

Re: Struts 2 and automatic ids

2014-09-11 Thread Heikki Hyyrö
Martin Gainty kirjoitti 11.9.2014 kello 14.31: > MG>reference for id is here > http://www.w3.org/TR/html401/struct/global.html#adef-id > > MG>the 'functions' the (generated) id plays are illustrated here: > The (unique) id attribute has several functions in HTML: Yes, I am quite aware of what id

RE: Struts 2 and automatic ids

2014-09-11 Thread Martin Gainty
> From: heikki.hy...@uta.fi > Subject: Struts 2 and automatic ids > Date: Thu, 11 Sep 2014 02:13:44 +0300 > To: user@struts.apache.org > > Hi all, > > I recently began to audit a Struts 2.3.16.1 ap

Re: struts 2: Redirect action giving token issue

2014-06-17 Thread Arpan
Thanks a lot Christoph.. It was a very good hint. Ultimately I have added the token value into request attribute and then accessed it in the result param as follows : token %{#request.token} On Tue, Jun 17, 2014 at 6:09 PM, Christoph Nenning < christoph.nenn...@lex-com.net> wrote: > You can

Re: struts 2: Redirect action giving token issue

2014-06-17 Thread Christoph Nenning
You can use OGNL in result config, like this: generateReport foo ${token} Regards, Christoph > Hi Christoph, > > There are token checks while submitting the ist page and while displaying > the 2nd page also. > The real problem is that while redi

Re: struts 2: Redirect action giving token issue

2014-06-17 Thread Arpan
Hi Christoph, There are token checks while submitting the ist page and while displaying the 2nd page also. The real problem is that while redirecting token is getting cleared from request parameter. Is there anyway I can pass the token in the request parameter to the next action. On Tue, Jun 17,

Re: struts 2: Redirect action giving token issue

2014-06-17 Thread Christoph Nenning
> HI All, > > We have two pages and both of them have tag and both of them use > token interceptor. > > After I submit one form I need to display another form in another page. > I am using "redirectAction" to redirect > > Before redirecting in the first action class I am setting token value i

Re: Struts 2 get custom action anotation in interceptors

2014-06-07 Thread Antonios Gkogkakis
Another way to get the annotation associated with the executed action is private static boolean isAnnotationPresent(ActionInvocation actionInvocation, Class annotationClass) { return getMethodFromInvocation(actionInvocation).isAnnotationPresent( annotationClass)

Re: Struts 2 get custom action anotation in interceptors

2014-06-06 Thread Alireza Fattahi
Thanks! A complete code sample at: http://stackoverflow.com/questions/24021534/struts-2-get-custom-action-anotation-in-interceptors   ~Regards, ~~Alireza Fattahi On Wednesday, 4 June 2014, 12:22, Lukasz Lenart wrote: Take a look on com.opensymphony.xwork2.util.AnnotationUtils 2014-06-0

Re: Struts 2 get custom action anotation in interceptors

2014-06-04 Thread Lukasz Lenart
Take a look on com.opensymphony.xwork2.util.AnnotationUtils 2014-06-03 19:37 GMT+02:00 Alireza Fattahi : > Consider below action class with three action mappings. Two of them are > annotated with a custom annotation `@AjaxAction` > > public class MyAction extends ActionSupport{ > > @Act

Re: Struts 2 get custom action anotation in interceptors

2014-06-03 Thread Dave Newton
Just get the action and check for the annotation. On Jun 3, 2014 1:41 PM, "Alireza Fattahi" wrote: > Consider below action class with three action mappings. Two of them are > annotated with a custom annotation `@AjaxAction` > > public class MyAction extends ActionSupport{ > > @Action("

Re: Struts 2 Access messages with JSTL instead of s:text

2014-06-02 Thread Alireza Fattahi
As mentioned the ${action.getText('sample')} will work, but this is JSTL method invocation and you need JSTL 2.2 (ex: tomcat 7)   ~Regards, ~~Alireza Fattahi On Friday, 30 May 2014, 16:20, Yaragalla Muralidhar wrote: you have to use fmt tags in jstl. Using jstl is a good idea. *Thanks an

Re: Struts 2 Access messages with JSTL instead of s:text

2014-05-30 Thread Yaragalla Muralidhar
you have to use fmt tags in jstl. Using jstl is a good idea. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ * On Wed, May 28, 2014 at 10:04 AM, Alireza Fattahi wrote: > In struts 2 the > > > > (is equivalent to...) > > JSTL:

Re: Struts 2 Access messages with JSTL instead of s:text

2014-05-27 Thread Lukasz Lenart
2014-05-28 6:34 GMT+02:00 Alireza Fattahi : > Meanwhile, I tried to find a way to pass textprovider to jsp. But I could not > find a way > > public class BaseActionSupport extends ActionSupport{ > > //Same as ActionSupport > private TextProvider Provider; //with setter and getter

Re: Struts 2 integration with classic struts 1

2014-03-25 Thread ankitkatiyar91
Thanks, It works.!! -- View this message in context: http://struts.1045723.n5.nabble.com/Struts-2-integration-with-classic-struts-1-tp3488661p5715579.html Sent from the Struts - User mailing list archive at Nabble.com. - To u

RE: Struts 2: Howto render output as HTML?

2014-03-06 Thread Fredrik Andersson
ate: Sun, 2 Mar 2014 20:30:05 -0700 > Subject: Re: Struts 2: Howto render output as HTML? > From: ken.mcwilli...@gmail.com > To: user@struts.apache.org > > If you want this behaviour for the whole application then set > struts.ui.theme to simple, inside struts.xml. Like so: >

Re: Struts 2: Howto render output as HTML?

2014-03-02 Thread Ken McWilliams
If you want this behaviour for the whole application then set struts.ui.theme to simple, inside struts.xml. Like so: Since you mentioned a single page, you can do that too, you can even have a single struts2 UI tag render under a different theme, these various options are listed here: http:

Re: Struts 2 defining a base action

2014-02-26 Thread Christoph Nenning
Basically it is better to reuse code via interceptors, not action base classes. You can have a look at JSONValidationInterceptor for an example how an interceptor can create a result. In your case you could define an interface Exportable which actions have to implement and your interceptor can

Re: Struts 2 Testing Actions

2013-11-28 Thread Damian Blazejewski
Brilliant, I suppose that " you can have struts.xml in test/resources with struts.objectFactory = struts" will solve my issue. Thank you very much. Pozdrawiam/Best regards, Damian Błażejewski dblazejewski.com 2013/11/28 Lukasz Lenart > Ok, I get it what do you want ;-) > > Take a look on

Re: Struts 2 Testing Actions

2013-11-28 Thread Lukasz Lenart
Ok, I get it what do you want ;-) Take a look on StrutsSpringObjectFactory, you can try to cheat it by defining ApplicationContext in ServletContext: servletContext.setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, mockWebAppContext); or you can have struts.xml in test/re

Re: Struts 2 Testing Actions

2013-11-27 Thread Damian Blazejewski
Lukasz, Mockito is what I am going to use. But how to deal with those Spring dependencies in the action? As I said before, when I extend StrutsJUnit4TestCase I get the following error: "Looks like the Spring listener was not configured for your web app! " On the other hand, extending StrutsSpringJ

Re: Struts 2 Testing Actions

2013-11-27 Thread Lukasz Lenart
Yes, use mocks -> Mockito Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/11/28 Damian Blazejewski : > I don't want to extend StrutsSpringJUnit4TestCase as it enforces me to > provide all Spring dependencies required by the action itself. > Although the Struts Action I want to

Re: Struts 2 Testing Actions

2013-11-27 Thread Damian Blazejewski
I don't want to extend StrutsSpringJUnit4TestCase as it enforces me to provide all Spring dependencies required by the action itself. Although the Struts Action I want to test is dependent only on two Spring beans, those beans have a lot of other dependencies and so on. What I would like to do is m

Re: Struts 2 Testing Actions

2013-11-27 Thread Lukasz Lenart
2013/11/26 Damian Blazejewski : > I have managed to sort it out. My project has two maven modules and one > parent pom common for those modules. > Tests are located in on of the submodules. > As turns out, when I add servlet-api and jsp-api dependencies to the parent > pom, the error is present. >

Re: Struts 2 Testing Actions

2013-11-26 Thread Damian Blazejewski
I have managed to sort it out. My project has two maven modules and one parent pom common for those modules. Tests are located in on of the submodules. As turns out, when I add servlet-api and jsp-api dependencies to the parent pom, the error is present. However, when I move those two dependencies

Re: Struts 2 Testing Actions

2013-11-25 Thread Lukasz Lenart
What Struts version do you use? And can you post source of the test? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/11/24 Damian Blazejewski : > Hello, > > I have a problem executing Struts 2 action test case. > I get the following error: > > > *Absent Code attribute in metho

Re: Struts 2, session, s:iterator s:if not working, please help (this is revised)

2013-11-19 Thread Antonios Gkogkakis
Hi John, You have to use var instead of id in the s:iterator tag. Antonios On 19 November 2013 07:06, Lukasz Lenart wrote: > Have you tried to use tag? > > 2013/11/19 john lee : > > > > > > from the following output, > >we can tell sell_price=36.97, display_price=1 > > > > why > >

Re: Struts 2, session, s:iterator s:if not working, please help (this is revised)

2013-11-18 Thread Lukasz Lenart
Have you tried to use tag? 2013/11/19 john lee : > > > from the following output, >we can tell sell_price=36.97, display_price=1 > > why >none of test statement works ? > > > please advise, thanks in advance > > john > > > > Class Part { > float sell_price; >

Re: Struts 2 Examples Updated

2013-10-31 Thread Antonio Sánchez
Will documentation be updated too? Do I create an issue in JIRA? El Jueves, 31 de Octubre de 2013 09:55:54 a.m., bphill...@ku.edu escribió: I updated the Struts 2 examples to test using the new release (2.3.15.3). I also fixed those examples that were still using name="expression" for regex X

RE: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Martin Gainty
facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: mgai...@hotmail.com > To: user@struts.apache.org > Subject: RE: [struts 2] java.io.FileNotFoundException: > http://www.opensymphony.com/xwork/xwork-validator

Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread John Boyer
Hi Srikanth: That fixed it. Thank you! John On Aug 7, 2013, at 10:41 AM, Sreekanth S. Nair wrote: > use this > >"-//Apache Struts//XWork Validator 1.0.2//EN" > "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";> > > > -- > Regards > Srikanth > > On W

Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Chris Pratt
I don't know if it's the latest, but http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd appears to work. (*Chris*) On Wed, Aug 7, 2013 at 10:36 AM, John Boyer wrote: > Hi Martin: > > Okay, but my validation XML is pointing to > http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd,

Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Sreekanth S. Nair
use this http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";> -- Regards Srikanth On Wed, Aug 7, 2013 at 11:06 PM, John Boyer wrote: > Hi Martin: > > Okay, but my validation XML is pointing to > http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd, which is no > longer available

RE: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Martin Gainty
Hi John xwork-validator-1.0.2.dtd *should* be in xwork-core-.jar jar -tvf xwork-.jar | grep xwork-validator ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nic

Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread John Boyer
Hi Martin: Okay, but my validation XML is pointing to http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd, which is no longer available. What should it point to now? Thanks, John --- http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>

Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Sreekanth S. Nair
Try changing you xxx-validation.xml file dtd url declaration with the latest available dtd inside xwork-core.jar -- Thanks & Regards Srikanth On Wed, Aug 7, 2013 at 10:44 PM, John Boyer wrote: > Hi: > > Suddenly, in-production, we're getting file-not-found errors for the > xwork-validator-1.0.

Re: Struts 2 jQuery autocompleter and dynamic list

2013-05-29 Thread Mike Hao
Hi Antonios and Dave, Thanks again for your responses. I actually downloaded the whole showcase project, and trying debugging on my local machine, trying to figure out what's the trick of it. At here, I think if the wiki pages provides more detail instructions on how to set some critical attribute

Re: Struts 2 jQuery autocompleter and dynamic list

2013-05-29 Thread Dave Newton
I'd just try it; seems like `list` would be for immediate data (e.g., on first page load) and then it would be replaced by data from `href`--although I'm not sure what the point of using both would be. Dave On Wed, May 29, 2013 at 2:25 PM, Antonios Gkogkakis wrote: > I haven't used the sj:auto

Re: Struts 2 jQuery autocompleter and dynamic list

2013-05-29 Thread Antonios Gkogkakis
I haven't used the sj:autocompleter (I'm using the jQuery autocompletedirectly), but from what I'm reading in the documentation if you use the href that points to a location that is returning json data you don't have to use the list attribute. Have you tried setting up the example in the document

Re: Struts 2 jQuery autocompleter and dynamic list

2013-05-29 Thread Mike Hao
Hi Antonios, Thank you so much for your response. I was actually keep reading the wiki these days, but I am still not able to get what I expected. For , can these two attribute "list" and "href" used together? Thanks, Mike On Wed, May 29, 2013 at 4:13 AM, Antonios Gkogkakis wrote: > Hi Mike

RE: Struts 2 jQuery autocompleter and dynamic list

2013-05-29 Thread Martin Gainty
> Subject: Re: Struts 2 jQuery autocompleter and dynamic list > From: gkogk...@tcd.ie > To: user@struts.apache.org > > Hi Mike, > > have a look at the following link > https://code.google.com/p/struts2-jquery/wiki/AutocompleterTag > > Antonios > > > > On

Re: Struts 2 jQuery autocompleter and dynamic list

2013-05-29 Thread Antonios Gkogkakis
Hi Mike, have a look at the following link https://code.google.com/p/struts2-jquery/wiki/AutocompleterTag Antonios On 29 May 2013 01:50, Mike Hao wrote: > I am trying to implement an auto complete feature using Struts 2 jQuery > plugin - . The suggestion list need to be dynamically > retriev

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread Chris Pratt
> > tks in advance > > john > > -- > *From:* Chris Pratt > *To:* Struts Users Mailing List ; john lee < > sh_thorn_b...@yahoo.com> > *Sent:* Thursday, May 23, 2013 6:25 PM > *Subject:* Re: struts 2 Intercepter ServletRequestAware > > Servle

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
first, then get Request object, then access >Cookie.. > >please advise  > > > >john > > > > From: Chris Pratt >To: Struts Users Mailing List ; john lee > >Sent: Thursday, May 23, 2013 5:02 PM > >Subject: R

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
because if cookie exist, then interceptor can catch it and assign the session object if user open the new webpage. From: "jlm...@gmail.com" To: Struts Users Mailing List ; john lee Sent: Thursday, May 23, 2013 6:25 PM Subject: Re: struts 2 I

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread Chris Pratt
en access > Cookie.. > > please advise > > > > john > > > From: Chris Pratt > To: Struts Users Mailing List ; john lee < > sh_thorn_b...@yahoo.com> > Sent: Thursday, May 23, 2013 5:02 PM > Subject: Re: struts 2 Intercept

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread jlmagc
You need to access the request directly. But why do you want to use a cookie in an interceptor? Sent via BlackBerry from T-Mobile -Original Message- From: john lee Date: Thu, 23 May 2013 16:20:08 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: Re

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
: Thursday, May 23, 2013 5:02 PM Subject: Re: struts 2 Intercepter ServletRequestAware You cannot use ServletRequestAware or ServletResponseAware in an Interceptor.   (*Chris*) On Thu, May 23, 2013 at 2:58 PM, john lee wrote: > please explain more, thanks in adva

  1   2   3   4   5   6   7   8   9   10   >