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/
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
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
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
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
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
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
7 matches
Mail list logo