Struts constants

2008-03-27 Thread Matthew Seaborn
How can you get hold of the constants defined in the struts.xml? Matthew Seaborn Software Architect t+44(0) 208 484 0729 m +44(0) 7949 465 142 e [EMAIL PROTECTED] [cid:image001.jpg@01C8903D.E0C3C3F0] Sussex House Plane Tree Crescent Feltham, Middlesex, TW13 7

Re: Struts constants

2008-03-27 Thread Jeromy Evans
If you want the value of a constant, use @Inject on a setter. This is available only to objects instantiated by the Struts2 Container (actions or beans in the config) Example: import com.opensymphony.xwork2.inject.Inject; @Inject("struts.devMode") public void setDeveloperMode(String value) {}

RE: Struts constants

2008-04-01 Thread Matthew Seaborn
What I meant was if the following is defined in the struts.xml How does that make it to the URLTag#setIncludeParams method and how can make our own constants? From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: 28 March 2008 00:09 To: Matthew Seaborn Subject: Re: Struts constants

Re: Struts constants

2008-04-01 Thread Jeromy Evans
Matthew Seaborn wrote: What I meant was if the following is defined in the struts.xml How does that make it to the URLTag#setIncludeParams method and how can make our own constants? Didn't I answer that? Repeated below again. --- If you want the value of a constant, use @I