Aw: Re: Setting struts.devMode only in struts.xml?

2025-05-29 Thread Ute Kaiser
Thank you Lukasz, Great advice and great documentation. I guess I need some search machine on the documentation. I edited struts.xml and added the variable to the Eclipse Wildfly Runtime (Tab Environment), and it works fine. Best regards Ute

Re: Setting struts.devMode only in struts.xml?

2025-05-29 Thread Lukasz Lenart
czw., 29 maj 2025 o 11:22 Ute Kaiser napisał(a): > > I face the issue that I have to change my struts.xml any time I want to > deploy from dev environment to test or production environment. > Either struts.devMode value=true or false. This might lead to deploying > devMode t

Setting struts.devMode only in struts.xml?

2025-05-29 Thread Ute Kaiser
I face the issue that I have to change my struts.xml any time I want to deploy from dev environment to test or production environment. Either struts.devMode value=true or false. This might lead to deploying devMode to production by accident. Is there an alternative place to set devMode more

Re: Struts 6.0.0 - Issue getting param value from struts.xml to Action

2022-07-22 Thread Lukasz Lenart
śr., 20 lip 2022 o 21:32 Jerald Dominic napisał(a): > > Hello Lukasz, > > Thank you. > It works fine with the 2.5.30 version. > In order to plan for future migration of our application to Struts 6, what > should be the next step? > Should I go ahead and report it as a bug? Appreciate any suggestio

Re: Struts 6.0.0 - Issue getting param value from struts.xml to Action

2022-07-20 Thread Jerald Dominic
lip 2022 o 04:21 Jerald Dominic napisał(a): > > > > Hello, > > > > We are migrating from Struts 2.5.26 to 6.0.0 > > *Issue* > > Result type used in struts.xml is the default one and below is an example > > of what we have, and we use request attributes as

Re: Struts 6.0.0 - Issue getting param value from struts.xml to Action

2022-07-19 Thread Lukasz Lenart
ating from Struts 2.5.26 to 6.0.0 > *Issue* > Result type used in struts.xml is the default one and below is an example > of what we have, and we use request attributes as well. > actionB?para1=value1&para2=value2 > When migrating to Struts 6.0.0 the above result type is not wo

Struts 6.0.0 - Issue getting param value from struts.xml to Action

2022-07-19 Thread Jerald Dominic
Hello, We are migrating from Struts 2.5.26 to 6.0.0 *Issue* Result type used in struts.xml is the default one and below is an example of what we have, and we use request attributes as well. actionB?para1=value1&para2=value2 When migrating to Struts 6.0.0 the above result type is not wor

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

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

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

2020-04-10 Thread Burton Rhodes
> > In other words, I would like to define a constant inside my struts.xml > file > > and then reference that constant further down in the file. > > > > For example: > > > > [struts.xml] > > > > > > > > > > > &

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

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

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

2020-04-09 Thread Burton Rhodes
Is it possible to reference a Struts constant from within the same file? In other words, I would like to define a constant inside my struts.xml file and then reference that constant further down in the file. For example: [struts.xml

RE: Mapping struts.xml actions to their full URL

2019-03-12 Thread Yasser Zamani
ubject: Mapping struts.xml actions to their full URL > >As part of security tests we are doing, I have to map the actions appears in >struts.xml to their full URLs. I know to connect between the namespace and the >action name of every action from struts.xml, but how can I know which ser

Re: Mapping struts.xml actions to their full URL

2019-03-11 Thread shonlevin1234
ty tests we are doing, I have to map the actions appears > > in struts.xml to their full URLs. I know to connect between the namespace > > and the action name of every action from struts.xml, but how can I know > > which servlet refers to each action? > > > > For examp

Re: Mapping struts.xml actions to their full URL

2019-03-11 Thread shonlevin1234
ty tests we are doing, I have to map the actions appears > > in struts.xml to their full URLs. I know to connect between the namespace > > and the action name of every action from struts.xml, but how can I know > > which servlet refers to each action? > > > > For examp

Re: Mapping struts.xml actions to their full URL

2019-03-11 Thread Dave Newton
The "servlet prefix" (whatever that is) is dependent on the deployment, not the app. On Mon, Mar 11, 2019 at 8:22 AM shonlevin1...@gmail.com < shonlevin1...@gmail.com> wrote: > As part of security tests we are doing, I have to map the actions appears > in struts.xml to thei

Mapping struts.xml actions to their full URL

2019-03-11 Thread shonlevin1234
As part of security tests we are doing, I have to map the actions appears in struts.xml to their full URLs. I know to connect between the namespace and the action name of every action from struts.xml, but how can I know which servlet refers to each action? For example, this is my struts.xml

Re: Migration struts.xml to Convention Plugin - Struts 2.5.20

2019-01-28 Thread Lukasz Lenart
sob., 26 sty 2019 o 01:19 developer researcher napisał(a): > > Hello, > > I want to migrate a web application based on struts.xml to use annotations, > but I have not found documentation and/or examples for the next cases: > > *1. * > > How should be the @Action (?) An

Migration struts.xml to Convention Plugin - Struts 2.5.20

2019-01-25 Thread developer researcher
Hello, I want to migrate a web application based on struts.xml to use annotations, but I have not found documentation and/or examples for the next cases: *1. * How should be the @Action (?) Annotation be for the default action? *2. Global Exception Handling* The documentation of convention

Re: no longer supports the directive in struts.xml

2017-02-06 Thread Lukasz Lenart
2017-02-06 22:02 GMT+01:00 Emi : > Hello, > > https://struts.apache.org/announce.html shows: > - Struts 2.5.8 no longer supports the directive in struts.xml Argh... this sounds wrong, it relates to https://issues.apache.org/jira/browse/WW-4727 which cannot basically be reproduced, I

no longer supports the directive in struts.xml

2017-02-06 Thread Emi
Hello, https://struts.apache.org/announce.html shows: - Struts 2.5.8 no longer supports the directive in struts.xml Used to have: "s1.xml, s2.xml, sN.xml". Struts.xml: . In version 2.5.10, do we need any changes to include s1.xml... sN.xml please

Re: convention plugin struts.xml interceptors

2016-11-05 Thread ronald.a.ander...@gmail.com
On 2016-11-01 12:20 (-0400), Lukasz Lenart wrote: > 2016-11-01 4:00 GMT+01:00 Ronald Andersen : > > Hi Lakasz > > > > Below is the struts.xml and LoginAction (for reference). Using default for > > package name in struts.xml: > > > > > > >

Re: convention plugin struts.xml interceptors

2016-11-05 Thread ronald.a.ander...@gmail.com
er...@gmail.com < > ronald.a.ander...@gmail.com> wrote: > > > > > > > On 2016-11-01 12:20 (-0400), Lukasz Lenart > > wrote: > > > 2016-11-01 4:00 GMT+01:00 Ronald Andersen : > > > > Hi Lakasz > > > > > > > > Below is the

Re: convention plugin struts.xml interceptors

2016-11-02 Thread ronald.a.ander...@gmail.com
er...@gmail.com < > ronald.a.ander...@gmail.com> wrote: > > > > > > > On 2016-11-01 12:20 (-0400), Lukasz Lenart > > wrote: > > > 2016-11-01 4:00 GMT+01:00 Ronald Andersen : > > > > Hi Lakasz > > > > > > > > Below is the

Re: convention plugin struts.xml interceptors

2016-11-02 Thread ronald.a.ander...@gmail.com
On 2016-11-01 12:20 (-0400), Lukasz Lenart wrote: > 2016-11-01 4:00 GMT+01:00 Ronald Andersen : > > Hi Lakasz > > > > Below is the struts.xml and LoginAction (for reference). Using default for > > package name in struts.xml: > > > > > > >

Re: convention plugin struts.xml interceptors

2016-11-01 Thread Ken McWilliams
gt; Hi Lakasz > > > > > > Below is the struts.xml and LoginAction (for reference). Using default > for > > > package name in struts.xml: > > > > > > > > > > > > > > "-

Re: convention plugin struts.xml interceptors

2016-11-01 Thread ronald.a.ander...@gmail.com
On 2016-11-01 12:20 (-0400), Lukasz Lenart wrote: > 2016-11-01 4:00 GMT+01:00 Ronald Andersen : > > Hi Lakasz > > > > Below is the struts.xml and LoginAction (for reference). Using default for > > package name in struts.xml: > > > > > > >

Re: convention plugin struts.xml interceptors

2016-11-01 Thread Lukasz Lenart
2016-11-01 4:00 GMT+01:00 Ronald Andersen : > Hi Lakasz > > Below is the struts.xml and LoginAction (for reference). Using default for > package name in struts.xml: > > > > "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" > "ht

Re: convention plugin struts.xml interceptors

2016-11-01 Thread ronald.a.ander...@gmail.com
On 2016-10-31 15:58 (-0400), Lukasz Lenart wrote: > 2016-10-30 18:59 GMT+01:00 ronald.a.ander...@gmail.com > : > > My actions are working fine by following the convention rules - no > > struts.xml required; I need to configure a custom interceptor, so > > struts.xml i

Re: convention plugin struts.xml interceptors

2016-11-01 Thread ronald.a.ander...@gmail.com
On 2016-10-30 18:53 (-0400), Martin Gainty wrote: > > > > > From: ronald.a.ander...@gmail.com > Sent: Sunday, October 30, 2016 1:59 PM > To: user@struts.apache.org > Subject: convention plugin struts.xml interceptors > >

Re: convention plugin struts.xml interceptors

2016-10-31 Thread Ronald Andersen
Hi Lakasz Below is the struts.xml and LoginAction (for reference). Using default for package name in struts.xml: http://struts.apache.org/dtds/struts-2.3.dtd";> package net.codejava.struts

Re: convention plugin struts.xml interceptors

2016-10-31 Thread Ronald Andersen
Hi Martin, It threw the same exception after adding the annotations; including my struts.xml file: http://struts.apache.org/dtds/struts-2.3.dtd";> On Sun, Oct 30, 2016 at 6:53 PM, Martin Gaint

Re: convention plugin struts.xml interceptors

2016-10-31 Thread Lukasz Lenart
2016-10-30 18:59 GMT+01:00 ronald.a.ander...@gmail.com : > My actions are working fine by following the convention rules - no struts.xml > required; I need to configure a custom interceptor, so struts.xml is > required. As soon as I add the struts.xml, the following exception is &

Re: convention plugin struts.xml interceptors

2016-10-30 Thread Martin Gainty
From: ronald.a.ander...@gmail.com Sent: Sunday, October 30, 2016 1:59 PM To: user@struts.apache.org Subject: convention plugin struts.xml interceptors My actions are working fine by following the convention rules - no struts.xml required; I need to configure

convention plugin struts.xml interceptors

2016-10-30 Thread ronald.a.ander...@gmail.com
My actions are working fine by following the convention rules - no struts.xml required; I need to configure a custom interceptor, so struts.xml is required. As soon as I add the struts.xml, the following exception is returned: Oct 30, 2016 1:54:22 PM org.apache.struts2.dispatcher.Dispatcher

RE: fix my error of coding struts.xml - Struts2 - interator

2014-06-24 Thread Tri Quan
All, I ran "Debug" and "Deploy" under NetBeans and found my error in line "result" of struts.xml file. Change iteratorkfc.jsp ** this line causes error. '/' is missing to /iteratorkfc.jsp URL : http:

RE: need help on struts.xml configuration using Struts 2.3, Tomcat 7, Java JDK 1.6

2014-06-20 Thread Dave Newton
t; Project IteratorKFC > Web Pages > iteratorkfc.jsp > > any advices ? > > thanks > Tri Quan > > -Original Message- > From: Lukasz Lenart [mailto:lukaszlen...@apache.org] > Sent: Friday, June 20, 2014 8:14 AM > To: Struts Users Mailing List > Subject:

RE: need help on struts.xml configuration using Struts 2.3, Tomcat 7, Java JDK 1.6

2014-06-20 Thread Tri Quan
AM To: Struts Users Mailing List Subject: Re: need help on struts.xml configuration using Struts 2.3, Tomcat 7, Java JDK 1.6 Wrong url, it supposed to be: http://localhost:8080/IteratorKFC/IteratorKFC/menu.action /IteratorKFC <- name of the war file, ie. context /IteratorKFC <- nam

RE: need help on struts.xml configuration using Struts 2.3, Tomcat 7, Java JDK 1.6

2014-06-20 Thread Martin Gainty
so in your case the action name *should be* menu in struts*xml did you have a specific question? Martin > Date: Fri, 20 Jun 2014 18:13:57 +0530 > Subject: Re: need help on struts.xml configuration using Struts 2.3, Tomcat > 7, Java JDK 1

Re: need help on struts.xml configuration using Struts 2.3, Tomcat 7, Java JDK 1.6

2014-06-20 Thread Yaragalla Muralidhar
I am green horn in Struts 2 and need help with struts.xml. > I got the following error when try this URL : > > localhost:8080/IteratorKFC/menu or localhost:8080/IteratorKFC/menu.action > . > > > > > > > what is wrong ? Incorrect con

Re: need help on struts.xml configuration using Struts 2.3, Tomcat 7, Java JDK 1.6

2014-06-20 Thread Lukasz Lenart
Wrong url, it supposed to be: http://localhost:8080/IteratorKFC/IteratorKFC/menu.action /IteratorKFC <- name of the war file, ie. context /IteratorKFC <- namespace defined in struts.xml 2014-06-20 13:33 GMT+02:00 Tri Quan : > All, > > I am green horn in Struts

need help on struts.xml configuration using Struts 2.3, Tomcat 7, Java JDK 1.6

2014-06-20 Thread Tri Quan
All, I am green horn in Struts 2 and need help with struts.xml. I got the following error when try this URL : localhost:8080/IteratorKFC/menu or localhost:8080/IteratorKFC/menu.action . what is wrong ? Incorrect configuration or incorrect URL

Re: need help on struts.xml configuration using Struts 2.3, Tomcat 7, Java JDK 1.6

2014-06-19 Thread Lukasz Lenart
Attachment is missing and mailing doesn't allow to send attachments ;-) 2014-06-20 3:26 GMT+02:00 Tri Quan : > > > All, > > I am green horn in Struts 2 and need help with > struts.xml. I got the following error when try this URL : > > localh

Re: need help on struts.xml configuration using Struts 2.3, Tomcat 7, Java JDK 1.6

2014-06-19 Thread Łukasz Lenart
Attachment is missing and mailing doesn't allow to send attachments ;-) 2014-06-20 3:26 GMT+02:00 Tri Quan : > > > All, > > I am green horn in Struts 2 and need help with > struts.xml. I got the following error when try this URL : > > localh

RE: need help on struts.xml configuration using Struts 2.3, Tomcat 7, Java JDK 1.6

2014-06-19 Thread Tri Quan
All, I am green horn in Struts 2 and need help with struts.xml. I got the following error when try this URL : localhost:8080/IteratorKFC/menu or localhost:8080/IteratorKFC/menu.action . what is wrong ? Incorrect configuration or incorrect URL

Re: Struts2 configuration (struts.xml) and Convention Plugin not compatible with Java 8?

2014-06-18 Thread Paweł Wielgus
actions? >>>>> >>>>> If i just move these lambdas out of action body >>>>> to another class (helper) >>>>> everything works just fine. >>>>> >>>>> How can i help to resolve this? >>>>>

Re: Struts2 configuration (struts.xml) and Convention Plugin not compatible with Java 8?

2014-06-18 Thread Lukasz Lenart
If i just move these lambdas out of action body >>>> to another class (helper) >>>> everything works just fine. >>>> >>>> How can i help to resolve this? >>>> I would love to have lambdas in action methods. >>

Re: Struts2 configuration (struts.xml) and Convention Plugin not compatible with Java 8?

2014-06-18 Thread Lukasz Lenart
ns inside actions? >>> >>> If i just move these lambdas out of action body >>> to another class (helper) >>> everything works just fine. >>> >>> How can i help to resolve this? >>> I would love to have lambdas in action methods.

Re: Struts2 configuration (struts.xml) and Convention Plugin not compatible with Java 8?

2014-06-18 Thread Paweł Wielgus
er class (helper) >> everything works just fine. >> >> How can i help to resolve this? >> I would love to have lambdas in action methods. >> >> Struts version is 2.3.16.3 >> Java version is 1.8.0_05 >> >&

Re: Struts2 configuration (struts.xml) and Convention Plugin not compatible with Java 8?

2014-06-18 Thread Lukasz Lenart
e lambdas out of action body > to another class (helper) > everything works just fine. > > How can i help to resolve this? > I would love to have lambdas in action methods. > > Struts version is 2.3.16.3 > Java version is 1.8.0_05 > > Best greetings, > Paweł

Struts2 configuration (struts.xml) and Convention Plugin not compatible with Java 8?

2014-06-18 Thread Paweł Wielgus
have lambdas in action methods. Struts version is 2.3.16.3 Java version is 1.8.0_05 Best greetings, Paweł Wielgus. [1] - for action defined in struts.xml SEVERE: Unable to read class [com.ppp.elsevier.struts.action.JournalCoverAction] java.lang.ArrayIndexOutOfBoundsException: 51966 at

Re: Interceptor in various struts.xml

2013-08-27 Thread Lukasz Lenart
2013/8/28 Ken McWilliams : > Not looking that closely but both your packages extend "struts-default" if > you want the interceptors/results of package "default" to be available to > package "M1" you should extend "default" on that package rather than > "struts-default"... Exactly! How do you want

Re: Interceptor in various struts.xml

2013-08-27 Thread Ken McWilliams
/WEB-INF/Hello.jsp > DEFAULT > > > > /WEB-INF/CatchAll.jsp > > > > > > > > > > But this interceptor is not propagated to the m1/struts.xml & > m2/struts.xml. > The i

Re: Interceptor in various struts.xml

2013-08-27 Thread Thomas Lionel SMETS (prof)
hAll.jsp But this interceptor is not propagated to the m1/struts.xml & m2/struts.xml. The interceptor needs to be added to the included files. With something like this : http://struts.apache.org/dtds/st

Re: Interceptor in various struts.xml

2013-08-27 Thread Ken McWilliams
; } > > > > but it is not set in most Actions of module_1 & module_2 > > > > \T, > > > > > > > > > > > > On 27/08/13 13:55, Dave Newton wrote: > > > > What doesn't work? > > > > Dave > > On

Re: Interceptor in various struts.xml

2013-08-27 Thread Dave Newton
TRANSACTION_ID); > return invocationResponse; > } > > but it is not set in most Actions of module_1 & module_2 > > \T, > > > > > > On 27/08/13 13:55, Dave Newton wrote: > > What doesn't work? > > Dave > On Aug 27, 2013 7:08 AM,

Re: Interceptor in various struts.xml

2013-08-27 Thread Thomas Lionel SMETS (prof)
n invocationResponse; } but it is not set in most Actions of module_1 & module_2 \T, On 27/08/13 13:55, Dave Newton wrote: > What doesn't work? > > Dave > On Aug 27, 2013 7:08 AM, "Thomas Lionel SMETS (prof)" > wrote: > >> I crea

Re: Interceptor in various struts.xml

2013-08-27 Thread Dave Newton
What doesn't work? Dave On Aug 27, 2013 7:08 AM, "Thomas Lionel SMETS (prof)" wrote: > > I created my interceptor stack in the top-level struts.xml, like this : >"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" > > "http:/

Interceptor in various struts.xml

2013-08-27 Thread Thomas Lionel SMETS (prof)
I created my interceptor stack in the top-level struts.xml, like this : http://struts.apache.org/dtds/struts-2.3.dtd";> ^[a-zA-Z0-9_]+$ 40

Re: accessing an external file in the struts.xml

2013-07-02 Thread Omar Ngarigari
the struts.xml You have at least one extra layer in your file path, normally you'd keep files like this under WEB-INF, and start the file path from there. Dave On Jul 2, 2013 1:14 PM, "Omar Ngarigari" wrote: > Thanks for responding to my question. However, JBoss server does

Re: accessing an external file in the struts.xml

2013-07-02 Thread Dave Newton
t; Omar N. > > > > From: Maurizio Cucchiara > To: Struts Users Mailing List ; Omar Ngarigari < > ngarigar...@yahoo.com> > Sent: Tuesday, July 2, 2013 12:20 PM > Subject: Re: accessing an external file in the struts.xml > > > >

Re: accessing an external file in the struts.xml

2013-07-02 Thread Omar Ngarigari
Thanks, Omar N. From: Maurizio Cucchiara To: Struts Users Mailing List ; Omar Ngarigari Sent: Tuesday, July 2, 2013 12:20 PM Subject: Re: accessing an external file in the struts.xml Much of the answer depends on what your application server is. In any case, I don't think this is

Re: accessing an external file in the struts.xml

2013-07-02 Thread Maurizio Cucchiara
ve or > server side folder from struts.xml? as follow: > > > C:/Folder/jasperReport.jasper > or > > > > My struts2 application is deployed on JBoss as 6, it seems > ServletRequestAware is unable to access the folder within war file while > working with JBoss. It i

accessing an external file in the struts.xml

2013-07-02 Thread Omar Ngarigari
Hello, Is it possible to access a file that is located in the local drive or server side folder from struts.xml? as follow: C:/Folder/jasperReport.jasper or

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread Lukasz Lenart
2012/12/3 ChadDavis : > There are (from 2.3): >> >> 79:dtdMappings.put("-//Apache Software Foundation//DTD Struts >> Configuration 2.0//EN", "struts-2.0.dtd"); >> 80:dtdMappings.put("-//Apache Software Foundation//DTD Struts >> Configuration 2.1//EN", "struts-2.1.dtd"); >> 81:

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread Lukasz Lenart
2012/12/3 ChadDavis : > I'm happy to hear that, I've posted how to get contributor rights to docs > > Posted where? http://markmail.org/message/4way2m5y2vlwkrih :-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread ChadDavis
There are (from 2.3): > > 79:dtdMappings.put("-//Apache Software Foundation//DTD Struts > Configuration 2.0//EN", "struts-2.0.dtd"); > 80:dtdMappings.put("-//Apache Software Foundation//DTD Struts > Configuration 2.1//EN", "struts-2.1.dtd"); > 81:dtdMappings.put("-//Apache S

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread Dave Newton
There are (from 2.3): 79:dtdMappings.put("-//Apache Software Foundation//DTD Struts Configuration 2.0//EN", "struts-2.0.dtd"); 80:dtdMappings.put("-//Apache Software Foundation//DTD Struts Configuration 2.1//EN", "struts-2.1.dtd"); 81:dtdMappings.put("-//Apache Software Fou

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread ChadDavis
Why aren't there mappings for the struts-xxx.dtd's? On Mon, Dec 3, 2012 at 1:20 AM, Lukasz Lenart wrote: > 2012/12/1 ChadDavis : > > Thanks Lukasz. This is very useful information. I think this clearly > fixes > > my problem, but I still have some questions. > > > > 1) when was xwork moved to

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread Lukasz Lenart
2012/12/3 ChadDavis : > So, it seems like this should be added to the wiki on the webworks to > struts 2 migration page . . . I'm more than willing to do provide the text. > what do you think? I'm happy to hear that, I've posted how to get contributor rights to docs Regards -- Łukasz + 48 606

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread ChadDavis
So, it seems like this should be added to the wiki on the webworks to struts 2 migration page . . . I'm more than willing to do provide the text. what do you think? On Mon, Dec 3, 2012 at 1:20 AM, Lukasz Lenart wrote: > 2012/12/1 ChadDavis : > > Thanks Lukasz. This is very useful information.

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread ChadDavis
Thanks! On Mon, Dec 3, 2012 at 1:20 AM, Lukasz Lenart wrote: > 2012/12/1 ChadDavis : > > Thanks Lukasz. This is very useful information. I think this clearly > fixes > > my problem, but I still have some questions. > > > > 1) when was xwork moved to ASF? > > Just before 2.2.1, two years ago, bu

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread Lukasz Lenart
2012/12/1 ChadDavis : > Thanks Lukasz. This is very useful information. I think this clearly fixes > my problem, but I still have some questions. > > 1) when was xwork moved to ASF? Just before 2.2.1, two years ago, but DTDs where changed sometime later http://struts.apache.org/2.x/docs/version-

Re: wierd stack trace regarding parsing of struts.xml

2012-12-01 Thread ChadDavis
> > But what do you think needs to match the jar file? I mean, > struts2-core.jar doesn't contain xwork-1.1.1.dtd, but the xwork jar does . > . . so why wouldn't it find it if it was just taking the xwork-1.1.1.dtd > and checking the classpath. > > When XWork was moved to ASF, we changed all the D

Re: wierd stack trace regarding parsing of struts.xml

2012-12-01 Thread Lukasz Lenart
2012/12/1 Davis, Chad : > >> IMO it just needs to match the DTD in the jar; as I said, I've generally seen >> this happen when there's a mis-match. >> >> In regards to your SO question, it would depend completely on the >> implementation and its configuration. >> > > Here's the one that doesn't wor

RE: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Davis, Chad
> IMO it just needs to match the DTD in the jar; as I said, I've generally seen > this happen when there's a mis-match. > > In regards to your SO question, it would depend completely on the > implementation and its configuration. > Here's the one that doesn't work: http://www.opensymphony.com

Re: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Dave Newton
ile locally, >> it goes on >> to the network. >> > > So, I think the issue is that I went from webwork to struts 2.3 on this app. > I did the migration a while back, and the struts.xml files still worked fine > even without migrating them to the new dtd ( declaration

RE: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Davis, Chad
> it goes on > to the network. > So, I think the issue is that I went from webwork to struts 2.3 on this app. I did the migration a while back, and the struts.xml files still worked fine even without migrating them to the new dtd ( declarations as well as actual structure ). But in on

Re: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Dave Newton
I also recall this being container-dependent, but I may be mis-recalling that. Dave On Fri, Nov 30, 2012 at 3:42 PM, Davis, Chad wrote: >> >> Probably trying to go out to the web for a DTD/XSD or something? >> > > Okay. It does appear to be finding the struts.xml file, and

RE: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Davis, Chad
> > Probably trying to go out to the web for a DTD/XSD or something? > Okay. It does appear to be finding the struts.xml file, and then timing out while trying to get something else over the network. I guess my first reaction is . . . . does my struts app really need to be able

Re: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Dave Newton
Probably trying to go out to the web for a DTD/XSD or something? On Fri, Nov 30, 2012 at 3:06 PM, Davis, Chad wrote: > So, when I restarted my struts2 app this afternoon I got complains about > "unable to load configuration. - [unknown location]". But, the location of > my

wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Davis, Chad
So, when I restarted my struts2 app this afternoon I got complains about "unable to load configuration. - [unknown location]". But, the location of my struts.xml - inside of the classes folder of the WAR - has not changes. And, indeed, the file is there. The stack trace is be

Re: Issue with entry in Struts.xml

2012-11-18 Thread Srineel Mazumdar
Thanks Dave.You got it right. So you are saying that if I want to forward the output of an action to another action , I should use redirect action?? I will search for the filter option. Regards, Srineel On Mon, Nov 19, 2012 at 1:13 AM, Dave Newton wrote: > > This entry is working: > > > > >

Re: Issue with entry in Struts.xml

2012-11-18 Thread Dave Newton
> This entry is working: > > > /WEB-INF/jsp/index.jsp > > > This entry is not: > > > /shop/index.action > It's not entirely clear what the question is, but in case the statement is actually "why", I'll answer. The first result forwards to a JSP. The second attempts to forward to an action

Re: Passing parameters from struts.xml to jsp securely/encripted..Struts2

2011-06-15 Thread Maurizio Cucchiara
Put it in the session! Maurizio Cucchiara Il giorno 15/giu/2011 19.37, "scoobyy" ha scritto: > Hi I'm using struts2 and i have an action tag which redirects to a jsp page > with the parameter it receives. > > > > stores.jsp?page${somepage} > true > true > > > > Problem is the ${somepage} val

Passing parameters from struts.xml to jsp securely/encripted..Struts2

2011-06-15 Thread scoobyy
Hi I'm using struts2 and i have an action tag which redirects to a jsp page with the parameter it receives. stores.jsp?page${somepage} true true Problem is the ${somepage} value is appear in the addr

Passing parameters from struts.xml to jsp securely/encripted..Struts2

2011-06-15 Thread scoobyy
Hi I'm using struts2 and i have an action tag which redirects to a jsp page with the parameter it receives. stores.jsp?page${somepage} true true Problem is the ${somepage} value is appear in the addr

overriding struts.xml settings from web.xml

2011-04-08 Thread Sami Dalouche
Hi, http://struts.apache.org/2.x/webxml.html explains how to set struts2 params from web.xml. I have several questions regarding this : 1/ If the same setting is declared both in web.xml and in struts.xml, which one wins ? 2/ the example sets the setting on StrutsPrepareAndExecuteFilter. What

Re: Problem in calling method from Struts.xml in struts2

2010-12-06 Thread ashish chawre
Thanks Li.. Yeh, it happens.. This trick certainly saves time. -- Ashish On Mon, Dec 6, 2010 at 4:02 PM, Li Ying wrote: > It looks like, the latest class files were not deployed to the WebApp > Context. > > Sometimes this happens. > > When you find something getting wrong, and your source code

Re: Problem in calling method from Struts.xml in struts2

2010-12-06 Thread Li Ying
BTW, according to the exception message: The execute method of UserRegistrationAction IS CALLED, but some code invoked by this method raised an exception. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additiona

Re: Problem in calling method from Struts.xml in struts2

2010-12-06 Thread Li Ying
It looks like, the latest class files were not deployed to the WebApp Context. Sometimes this happens. When you find something getting wrong, and your source code looks like right, Just try turn off the web app, and re-deployed your latest code again. See if it the error get fixed. Sometimes, th

Re: Problem in calling method from Struts.xml in struts2

2010-12-06 Thread ashish chawre
Thanks everyone for your responses. The problem is fixed but I don't know how :).. What I did is just turn off my computer after battling with the prob, thought to take a drive and when I came back and start the application again its just working fine. I got all my records in db using the same conf

Re: Problem in calling method from Struts.xml in struts2

2010-12-06 Thread Dave Newton
You might *think* it's there, but I'm pretty sure it isn't--is the correct version deployed? Are its dependencies deployed? The message is pretty explicit with regards to what's wrong. Dave On Mon, Dec 6, 2010 at 12:10 PM, ashish chawre wrote: > .

Re: Problem in calling method from Struts.xml in struts2

2010-12-06 Thread ashish chawre
class but > it > > doesn't call the method. > > Here is the code of my struts.xml : > > > > > > > > > > > > > > > >{1} > >{1} > > > >

Re: Problem in calling method from Struts.xml in struts2

2010-12-06 Thread Maurizio Cucchiara
doesn't call the method. > Here is the code of my struts.xml : > > >     >     > >     >         >            {1} >            {1} >         >         method="execute"> >            d_UserRegistrationAction >            LoginAction >

Problem in calling method from Struts.xml in struts2

2010-12-06 Thread ashish chawre
Hi list, I am trying to call execute method of my UserRegistrationAction class but it doesn't call the method. Here is the code of my struts.xml : {1} {1} d_UserRegistrationAction LoginA

Re: How to get the value of Constants defined in struts.xml

2010-10-25 Thread Andy Law
essage in context: http://old.nabble.com/How-to-get-the-value-of-Constants-defined-in-struts.xml-tp30019022p30048243.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsu

Re: How to get the value of Constants defined in struts.xml

2010-10-25 Thread Dave Newton
I think it should be value instead of name >>>> i.e. >>>> @Inject(value="myConstant") >>>> instead of >>>> @Inject(name="myConstant") >>>> >>>> >>>> ~SK >>>> >>>> >>>>

Re: How to get the value of Constants defined in struts.xml

2010-10-24 Thread SudhirJava
;> ~SK >>> >>> >>> rahulmohan wrote: >>>> >>>> Just put an @Inject(name="MYCONSTANTVARIABLE") annotation on the setter >>>> in >>>> action class. >>>> >>>> - RM >>>> >>>> >

Re: How to get the value of Constants defined in struts.xml

2010-10-24 Thread Maurizio Cucchiara
t; >> >> ~SK >> >> >> rahulmohan wrote: >>> >>> Just put an @Inject(name="MYCONSTANTVARIABLE") annotation on the setter >>> in >>> action class. >>> >>> - RM >>> >>> >>> >>> From

Re: How to get the value of Constants defined in struts.xml

2010-10-24 Thread SudhirJava
t;> >> >> From: >> SudhirJava >> To: >> user@struts.apache.org >> Date: >> 21-10-2010 17:58 >> Subject: >> How to get the value of Constants defined in struts.xml >> >> >> >> >> I am sorry, if this threa

  1   2   3   4   >