Re: access static method with request parameter

2011-06-20 Thread Lukasz Lenart
2011/6/20 k3v1n : > My request is HttpServletRequest instance! not Map! I didn't know that! My magic ball is broken! > I don't understand! I know very well Struts1! We're taking about Struts 2! You can use ServletActionContext [1] [1] http://struts.apache.org/2.x/struts2-core/

Re: access static method with request parameter

2011-06-20 Thread k3v1n
My request is HttpServletRequest instance! not Map<String, Object>! I don't understand! I know very well Struts1! Help please -- View this message in context: http://struts.1045723.n5.nabble.com/access-static-method-with-request-parameter-tp4505653p4506342.html Sent from the St

Re: access static method with request parameter

2011-06-20 Thread Dave Newton
Or, pass in what you actually need from the request instead of introducing a dependency on the servlet spec. What's required from the request? Dave On Jun 20, 2011 7:19 AM, "Lukasz Lenart" wrote: > 2011/6/20 k3v1n : >> >> aaa >> > > Wrap call to myMethod inside your action that should impleme

Re: access static method with request parameter

2011-06-20 Thread Lukasz Lenart
2011/6/20 k3v1n : > > aaa > Wrap call to myMethod inside your action that should implement RequestAware interface [1], like below public class MyAction implements RequestAware { private Map request; void setRequest(java.util.Map request) { this.request = request; } public boolean isMyMth

Re: access static method with request parameter

2011-06-20 Thread k3v1n
Yes, I try it... myMethod is called but request param is null -- View this message in context: http://struts.1045723.n5.nabble.com/access-static-method-with-request-parameter-tp4505653p4505739.html Sent from the Struts - User mailing list archive at Nabble.com

Re: access static method with request parameter

2011-06-20 Thread Maurizio Cucchiara
gt; > aaa > > > but in myMethod, request param is always null! Why? > > I think my OGNL expression is wrong. > > I set in my struts.xml this constant: > > > Help me please. > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/ac

access static method with request parameter

2011-06-20 Thread k3v1n
please. -- View this message in context: http://struts.1045723.n5.nabble.com/access-static-method-with-request-parameter-tp4505653p4505653.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e