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
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
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) {}
3 matches
Mail list logo