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

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

2022-07-20 Thread Jerald Dominic
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
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=value1para2=value2 > When migrating to Struts 6.0.0 the above result type is not working

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=value1para2=value2 When migrating to Struts 6.0.0 the above result type is not working

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

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

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

2020-04-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
curity 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
curity 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 t

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 <em...@encs.concordia.ca>: > 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 whic

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 <lukaszlen...@apache.org> wrote: > 2016-11-01 4:00 GMT+01:00 Ronald Andersen <ronald.a.ander...@gmail.com>: > > Hi Lakasz > > > > Below is the struts.xml and LoginAction (for reference). Using default fo

Re: convention plugin struts.xml interceptors

2016-11-05 Thread ronald.a.ander...@gmail.com
16 at 1:05 PM, ronald.a.ander...@gmail.com < > ronald.a.ander...@gmail.com> wrote: > > > > > > > On 2016-11-01 12:20 (-0400), Lukasz Lenart <lukaszlen...@apache.org> > > wrote: > > > 2016-11-01 4:00 GMT+01:00 Ronald Andersen <ronald

Re: convention plugin struts.xml interceptors

2016-11-02 Thread ronald.a.ander...@gmail.com
16 at 1:05 PM, ronald.a.ander...@gmail.com < > ronald.a.ander...@gmail.com> wrote: > > > > > > > On 2016-11-01 12:20 (-0400), Lukasz Lenart <lukaszlen...@apache.org> > > wrote: > > > 2016-11-01 4:00 GMT+01:00 Ronald Andersen <ronald

Re: convention plugin struts.xml interceptors

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

Re: convention plugin struts.xml interceptors

2016-11-01 Thread Ken McWilliams
onald Andersen <ronald.a.ander...@gmail.com>: > > > 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 <lukaszlen...@apache.org> wrote: > 2016-11-01 4:00 GMT+01:00 Ronald Andersen <ronald.a.ander...@gmail.com>: > > Hi Lakasz > > > > Below is the struts.xml and LoginAction (for reference). Using default fo

Re: convention plugin struts.xml interceptors

2016-11-01 Thread Lukasz Lenart
2016-11-01 4:00 GMT+01:00 Ronald Andersen <ronald.a.ander...@gmail.com>: > 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

Re: convention plugin struts.xml interceptors

2016-11-01 Thread ronald.a.ander...@gmail.com
On 2016-10-31 15:58 (-0400), Lukasz Lenart <lukaszlen...@apache.org> wrote: > 2016-10-30 18:59 GMT+01:00 ronald.a.ander...@gmail.com > <ronald.a.ander...@gmail.com>: > > My actions are working fine by following the convention rules - no > > struts.xml required

Re: convention plugin struts.xml interceptors

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

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; imp

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 Gainty &l

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

Re: convention plugin struts.xml interceptors

2016-10-30 Thread Martin Gainty
From: ronald.a.ander...@gmail.com <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 stru

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 result name=successiteratorkfc.jsp/result ** this line causes error. '/' is missing to result name=success/iteratorkfc.jsp/result URL

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

2014-06-20 Thread Lukasz Lenart
Attachment is missing and mailing doesn't allow to send attachments ;-) 2014-06-20 3:26 GMT+02:00 Tri Quan quans...@wans.net: 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

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

2014-06-20 Thread Łukasz Lenart
Attachment is missing and mailing doesn't allow to send attachments ;-) 2014-06-20 3:26 GMT+02:00 Tri Quan quans...@wans.net: 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

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-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 quans...@wans.net: All, I am green horn in Struts 2

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 configuration or incorrect URL ? Struts has

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

2014-06-20 Thread Martin Gainty
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.6 From: yaragallamur...@gmail.com To: user@struts.apache.org localhost:8080

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 - namespace defined

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

2014-06-20 Thread Dave Newton
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 Wrong url

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

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

2014-06-18 Thread Paweł Wielgus
to 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

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

2014-06-18 Thread Lukasz Lenart
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ł Wielgus. [1] - for action defined in struts.xml SEVERE

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

2014-06-18 Thread Paweł Wielgus
. 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ł Wielgus. [1] - for action defined in struts.xml SEVERE: Unable to read class [com.ppp.elsevier.struts.action.JournalCoverAction

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

2014-06-18 Thread Lukasz Lenart
. 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ł Wielgus. [1] - for action defined in struts.xml SEVERE: Unable to read class [com.ppp.elsevier.struts.action.JournalCoverAction

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

2014-06-18 Thread Lukasz Lenart
, 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 org.objectweb.asm.ClassReader.readUTF8(Unknown Source) at org.objectweb.asm.ClassReader.readClass(Unknown

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

2014-06-18 Thread Paweł Wielgus
) 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ł Wielgus. [1] - for action defined in struts.xml SEVERE: Unable to read class

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 : !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.3//EN http://struts.apache.org/dtds/struts-2.3.dtd; struts package name=default namespace=/ extends=struts-default

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) tsm...@a3-system.eu wrote: I created my interceptor stack in the top-level struts.xml, like this : !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.3//EN http

Re: Interceptor in various struts.xml

2013-08-27 Thread Thomas Lionel SMETS (prof)
; } 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) tsm...@a3-system.eu wrote: I created my interceptor stack in the top-level struts.xml, like

Re: Interceptor in various struts.xml

2013-08-27 Thread Dave Newton
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) tsm...@a3-system.eu tsm...@a3-system.eu wrote: I created my interceptor stack in the top-level struts.xml, like this : !DOCTYPE struts PUBLIC -//Apache

Re: Interceptor in various struts.xml

2013-08-27 Thread Ken McWilliams
wrote: I created my interceptor stack in the top-level struts.xml, like this : !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.3//EN http://struts.apache.org/dtds/struts-2.3.dtd; http://struts.apache.org/dtds/struts-2.3.dtd http

Re: Interceptor in various struts.xml

2013-08-27 Thread Thomas Lionel SMETS (prof)
-INF/Hello.jsp/result param name=scenarioDEFAULT/param /action action name=* class=be.a3-system.action.CatchAllAction result name=success/WEB-INF/CatchAll.jsp/result /action /package include file=m1/struts.xml / include file=m2

Re: Interceptor in various struts.xml

2013-08-27 Thread Ken McWilliams
/struts.xml / include file=m2/struts.xml / /struts 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 : ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC -//Apache

Re: Interceptor in various struts.xml

2013-08-27 Thread Lukasz Lenart
2013/8/28 Ken McWilliams ken.mcwilli...@gmail.com: 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

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: result name=success type=jasper param name=locationC:/Folder/jasperReport.jasper/param or param name=location%{filename}/param where the filename is avariable

Re: accessing an external file in the struts.xml

2013-07-02 Thread Maurizio Cucchiara
drive or server side folder from struts.xml? as follow: result name=success type=jasper param name=locationC:/Folder/jasperReport.jasper/param or param name=location%{filename}/param where the filename is avariable in the action class with the file location is hardcoded as String filename = C

Re: accessing an external file in the struts.xml

2013-07-02 Thread Omar Ngarigari
. From: Maurizio Cucchiara mcucchi...@apache.org To: Struts Users Mailing List user@struts.apache.org; Omar Ngarigari ngarigar...@yahoo.com 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

Re: accessing an external file in the struts.xml

2013-07-02 Thread Dave Newton
Mailing List user@struts.apache.org; Omar Ngarigari ngarigar...@yahoo.com 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 a good practice. IMO you

Re: accessing an external file in the struts.xml

2013-07-02 Thread Omar Ngarigari
Subject: Re: accessing an external file in 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 ngarigar...@yahoo.com wrote: Thanks for responding

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread Lukasz Lenart
2012/12/1 ChadDavis chadmichaelda...@gmail.com: 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

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 lukaszlen...@apache.orgwrote: 2012/12/1 ChadDavis chadmichaelda...@gmail.com: 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?

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 lukaszlen...@apache.orgwrote: 2012/12/1 ChadDavis chadmichaelda...@gmail.com:

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread Lukasz Lenart
2012/12/3 ChadDavis chadmichaelda...@gmail.com: 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

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 lukaszlen...@apache.orgwrote: 2012/12/1 ChadDavis chadmichaelda...@gmail.com: Thanks Lukasz. This is very useful information. I think this clearly fixes my problem, but I still have some

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

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 Software

Re: wierd stack trace regarding parsing of struts.xml

2012-12-03 Thread Lukasz Lenart
2012/12/3 ChadDavis chadmichaelda...@gmail.com: 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 Lukasz Lenart
2012/12/3 ChadDavis chadmichaelda...@gmail.com: 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-01 Thread Lukasz Lenart
2012/12/1 Davis, Chad chad.da...@emc.com: 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

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

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 below

Re: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Dave Newton
struts.xml - inside of the classes folder of the WAR - has not changes. And, indeed, the file is there. The stack trace is below. For starters, I'm surprised to see sockets involved? 2012-11-30 20:45:28,357 WARN [pool-2-thread-1]-ejb.Ejb3Configuration: hibernate.connection.autocommit = false

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 to reach out

Re: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Dave Newton
-dependent, but I may be mis-recalling that. Dave On Fri, Nov 30, 2012 at 3:42 PM, Davis, Chad chad.da...@emc.com 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 then timing out while trying to get something

RE: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Davis, Chad
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 this one installation they fail. My theory is that if the internet

Re: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Dave Newton
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 this one installation they fail. My theory

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: ?xml version=1.0 encoding=UTF-8?

Re: Issue with entry in Struts.xml

2012-11-18 Thread Dave Newton
This entry is working: action name=signon class=signonAction result/WEB-INF/jsp/index.jsp/result /action This entry is not: action name=signon class=signonAction result/shop/index.action/result /action It's not entirely clear what the question is, but in case the statement is

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 davelnew...@gmail.com wrote: This entry is

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. action name=defaultstores class=storesAction result name=success stores.jsp?page${somepage} true true

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. action name=defaultstores class=storesAction result name=success stores.jsp?page${somepage} true true

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 vishwa.sa...@gmail.com ha scritto: Hi I'm using struts2 and i have an action tag which redirects to a jsp page with the parameter it receives. action name=defaultstores class=storesAction result name=success

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

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 : struts constant name=struts.enable.DynamicMethodInvocation value=false/ constant name=struts.devMode value=false/ package name=company

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

2010-12-06 Thread Maurizio Cucchiara
but it doesn't call the method. Here is the code of my struts.xml : struts    constant name=struts.enable.DynamicMethodInvocation value=false/    constant name=struts.devMode value=false/    package name=company extends=tiles-default        action name=d_* class=com.company.action.{1

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

2010-12-06 Thread ashish chawre
the method. Here is the code of my struts.xml : struts constant name=struts.enable.DynamicMethodInvocation value=false/ constant name=struts.devMode value=false/ package name=company extends=tiles-default action name=d_* class=com.company.action.{1} method=input

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 ashish.chawr...@gmail.comwrote: .

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

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,

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

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 liying.cn.2...@gmail.com wrote: It looks like, the latest class files were not deployed to the WebApp Context. Sometimes this happens. When you find something getting wrong,

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

2010-10-25 Thread Maurizio Cucchiara
sudhi...@gmail.com 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 thread is repeated. Please tell tell me how get the value of Constants defined in struts.xml. Is it possible to get the value

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

2010-10-25 Thread SudhirJava
=myConstant) ~SK rahulmohan wrote: Just put an @Inject(name=MYCONSTANTVARIABLE) annotation on the setter in action class. - RM From: SudhirJava sudhi...@gmail.com To: user@struts.apache.org Date: 21-10-2010 17:58 Subject: How to get the value of Constants defined in struts.xml

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

2010-10-25 Thread Dave Newton
@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 thread is repeated. Please tell tell me how get the value of Constants defined in struts.xml. Is it possible to get the value of MYCONSTANTVARIABLE in action

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

2010-10-25 Thread Andy Law
/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-unsubscr...@struts.apache.org For additional commands

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

2010-10-24 Thread SudhirJava
in struts.xml I am sorry, if this thread is repeated. Please tell tell me how get the value of Constants defined in struts.xml. Is it possible to get the value of MYCONSTANTVARIABLE in action class. constant name=MYCONSTANTVARIABLE value=MYCONSTANTVALUE / Thanks Sudhir -- View

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

2010-10-22 Thread SudhirJava
...@gmail.com 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 thread is repeated. Please tell tell me how get the value of Constants defined in struts.xml. Is it possible to get the value

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

2010-10-21 Thread SudhirJava
I am sorry, if this thread is repeated. Please tell tell me how get the value of Constants defined in struts.xml. Is it possible to get the value of MYCONSTANTVARIABLE in action class. constant name=MYCONSTANTVARIABLE value=MYCONSTANTVALUE / Thanks Sudhir -- View this message in context

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

2010-10-21 Thread Dave Newton
Get it where? Normally you'd just use the @Inject annotation, IIRC. Dave On Thu, Oct 21, 2010 at 8:27 AM, SudhirJava sudhi...@gmail.com wrote: I am sorry, if this thread is repeated. Please tell tell me how get the value of Constants defined in struts.xml. Is it possible to get the value

  1   2   3   4   >