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

2010-10-25 Thread Andy Law
7;s just an @Inject. > > On Mon, Oct 25, 2010 at 2:55 AM, SudhirJava wrote: >> >> Struts Constants. >> I can define in web.xml and get the value in Action class too. >> Then what is the use of Struts Constants? >> >> >> ~SK > > -- View this m

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

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

2010-10-22 Thread SudhirJava
ction class. > > - RM > > > > 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 thread is repeated. > > Please t

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

2010-10-21 Thread Rahul Mohan
Just put an @Inject(name="MYCONSTANTVARIABLE") annotation on the setter in action class. - RM 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 thread is repeated. Please te

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

2010-10-21 Thread Dave Newton
to get the value of "MYCONSTANTVARIABLE" in action class. > > > > > Thanks > Sudhir > -- > View this message in context: > http://old.nabble.com/How-to-get-the-value-of-Constants-defined-in-struts.xml-tp30019022p30019022.html > Se

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. Thanks Sudhir -- View this message in context: http://old.nabble.com/How-to-get-the-value-of