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
2 matches
Mail list logo