Great it works.
Thanks so much Musachy... :)
Manish.
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 10:51 PM
To: Struts Users Mailing List
Subject: Re: How to read struts2 constants in action class
use "@Inject"
use "@Inject".
@Inject("custom.myConstant")
public void setSomeString(String mystring) {...}
Things to note about that:
1. Struts needs to be the one creating your actions (no object factory from
an IoC, like Spring, Guice, etc)
2. This is not guaranteed to work in the future, but it is unlikely
Hi All,
Is there a away to get the value of a constant, declared in the struts.xml
file, in my action class?
Thanks,
Manish
-
DISCLAIMER
This email and any files transmitted with it ar
3 matches
Mail list logo