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!
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 Struts - User maili
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.
--
Have you already tried something like #request?
On 20 June 2011 11:23, k3v1n wrote:
> Hi all,
>
> I need use struts 2 tag with static method.
>
> Example:
>
> My method...
>
> class org.mydomain.MyClass
> method myMethod(HttpServletRequest)
>
> in jsp
>
>
> aaa
>
>
> but in myMethod, request pa
6 matches
Mail list logo