struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dustin Pearce <dustin_pea...@yahoo.com>
Subject Re: Struts 2.1.2 REST plug-in
Date Tue, 26 Aug 2008 22:15:08 GMT
Problem us you can parameterize the actionRedirect vs. a straight servletRedirect.

Unless that was fixed.

Sent from my iPhone

On Aug 26, 2008, at 3: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



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


Mime
View raw message