struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: Struts 2.1.2 REST plug-in
Date Wed, 27 Aug 2008 13:51:40 GMT
It should work with XML config also.

musachy

On Wed, Aug 27, 2008 at 9:43 AM,  <stanlick@gmail.com> wrote:
> Thanks bro.  So am I to understand that annotations are required to take
> advantage of namespaces if you are not configuring your actions in XML?
> This would seem to have simply moved configuration into the actions. :(
>
> Peace,
> Scott
>
> On Tue, Aug 26, 2008 at 5:10 PM, Musachy Barroso <musachy@gmail.com> wrote:
>
>> On Tue, Aug 26, 2008 at 5:43 PM, stanlick <stanlick@gmail.com> wrote:
>> >
>> > I have decided to dive into the beta blue water!  I sort of have things
>> > working, but...
>> >
>> > How does the plug-in work when using namespaces?  The
>> > struts2-rest-showcase-2.1.2 uses the default and I am running into weird
>> > problems that I'm not sure how to "fix."
>> >
>>
>> Use @Namespace :
>> http://struts.apache.org/2.0.11.2/docs/namespace-annotation.html
>>
>>
>> > Also, why is this annotation in the OrdersController?
>> > @Results({
>> >    @Result(name="success", type=ServletActionRedirectResult.class,
>> > value="orders")
>> > })
>>
>> Because the default result type is "dispatcher", in this case (after
>> deleting I guess) a "redirect" is more appropiate.
>>
>> musachy
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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


Mime
View raw message