RE: How to read struts2 constants in action class

2008-11-25 Thread Manish Kumar Wadhwa
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"

Re: How to read struts2 constants in action class

2008-11-24 Thread Musachy Barroso
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