Heading off at a slight tangent, is it possible to use the constant values in action configurations within the struts XML?
I have long thought it a code smell that I have magic strings in my XML configuration that get repeated in my code. If I could handle those by reference to a single point in my configuration file (referencing in my <action><result></result></action> tags, @Injecting into my action classes) then I would be much happier (well, a *bit* happier). Of course, there would still be the pervasive smell over trying to get the values into the tests.... :o{ Dave Newton-6 wrote: > > Simplicity: it's just an @Inject. > > On Mon, Oct 25, 2010 at 2:55 AM, SudhirJava <sudhi...@gmail.com> 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 message 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-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org