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
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
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
ś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
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
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¶2=value2
> When migrating to Struts 6.0.0 the above result type is not wo
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¶2=value2
When migrating to Struts 6.0.0 the above result type is not wor
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
> > 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]
> >
> >
> >
> >
> >
> &
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.
>
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
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
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
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
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
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
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
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
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
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
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:
> >
> >
> >
>
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
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
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:
> >
> >
> >
>
gt; Hi Lakasz
> > >
> > > Below is the struts.xml and LoginAction (for reference). Using default
> for
> > > package name in struts.xml:
> > >
> > >
> > >
> > > > > "-
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:
> >
> >
> >
>
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
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
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
>
>
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
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
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
&
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
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
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:
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:
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
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
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
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
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
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
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
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
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?
>>>>>
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.
>>
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.
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
>>
>&
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ł
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
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
/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
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
; }
> >
> > 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
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,
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
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:/
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
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
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
>
>
>
>
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
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
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
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:
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/
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
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
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
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
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.
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
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-
> > 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
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
> 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
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
> 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
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
>
> 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
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
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
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:
> >
> >
>
> 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
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
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
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
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
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
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
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
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
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:
> .
class but
> it
> > doesn't call the method.
> > Here is the code of my struts.xml :
> >
> >
> >
> >
> >
> >
> >
> >{1}
> >{1}
> >
> >
doesn't call the method.
> Here is the code of my struts.xml :
>
>
>
>
>
>
>
> {1}
> {1}
>
> method="execute">
> d_UserRegistrationAction
> LoginAction
>
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
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
I think it should be value instead of name
>>>> i.e.
>>>> @Inject(value="myConstant")
>>>> instead of
>>>> @Inject(name="myConstant")
>>>>
>>>>
>>>> ~SK
>>>>
>>>>
>>>>
;> ~SK
>>>
>>>
>>> rahulmohan wrote:
>>>>
>>>> Just put an @Inject(name="MYCONSTANTVARIABLE") annotation on the setter
>>>> in
>>>> action class.
>>>>
>>>> - RM
>>>>
>>>>
>
t;
>>
>> ~SK
>>
>>
>> rahulmohan wrote:
>>>
>>> Just put an @Inject(name="MYCONSTANTVARIABLE") annotation on the setter
>>> in
>>> action class.
>>>
>>> - RM
>>>
>>>
>>>
>>> From
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 - 100 of 392 matches
Mail list logo