struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tsin Eduardo <fshk...@gmail.com>
Subject Re: Why doesn't StrutsJunit4TestCase invoke index() method
Date Wed, 04 Apr 2012 03:31:13 GMT
I found out where is my problem:

I should set the request method to be "GET"  explicitly.

e.g.

request.setMethod("GET");
excuteAction( myUrl);



2012/4/4 Tsin Eduardo <fshkqhj@gmail.com>:
> Hi,  Łukasz, I configurate as <constant name="struts.mapper.class"
> value="rest" /> early, I got that error too.
>
> Thank you for the reply anyway.
>
> Best Regards
>
> 2012/4/4 Łukasz Lenart <lukasz.lenart@googlemail.com>:
>>>  <constant name="struts.mapper.class"
>>> value="org.apache.struts2.rest.RestActionMapper" />
>>
>> It should be rather
>>
>> <constant name="struts.mapper.class" value="rest" />
>>
>>
>> Kind regards
>> --
>> Łukasz http://www.lenart.org.pl/
>> mobile +48 606 323 122, office +27 11 0838747
>> Warszawa JUG conference - Confitura http://confitura.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message