Can anyone tell me off hand if it's possible to get a reference to the Action I'm testing? I need to retrieve a value from the ApplicationResources, and the Action class has a getResources(request) method that I'd like to call: http://jakarta.apache.org/struts/api/org/apache/struts/action/Action.html#getResources\(javax.servlet.http.HttpServletRequest)
Is this even possible? if not, could someone point me to a workaround?
What I'm trying to do is add a request parameter whose value is in my ApplicationResources.properties so that I can test a LookupDispatchAction. Has anyone out there done this before?
Thanks in advance,
Colin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
I'm using Struts 1.1b2.
Can anyone tell me off hand if it's possible to get a reference to the Action I'm testing? I need to retrieve a value from the ApplicationResources, and the Action class has a getResources(request) method that I'd like to call:
http://jakarta.apache.org/struts/api/org/apache/struts/action/Action.html#getResources\(javax.servlet.http.HttpServletRequest)
Is this even possible? if not, could someone point me to a workaround?
What I'm trying to do is add a request parameter whose value is in my ApplicationResources.properties so that I can test a LookupDispatchAction. Has anyone out there done this before?
Thanks in advance,
Colin