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

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-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) {}