how to replicate the redirect-action result type in annotation way convention plugin

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

how to replicate the redirect-action result type in annotation way convention plugin

srinivasch
Hi,

   Basically I want to redirect from Action A to Action B. How can I achieve that through annotations @Results. I tried couple of ways but it doesnt work

@Result(name = "input", type="redirect-action", location="resend.action")

Also tried
@Action(resend).

 Appreciate your quick help.

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: how to replicate the redirect-action result type in annotation way convention plugin

srinivasch
This is how I should do it

@Results({
    @Result(name="input", type="redirectAction", params = {"actionName" , "resend"})
})

srinivasch wrote
Hi,

   Basically I want to redirect from Action A to Action B. How can I achieve that through annotations @Results. I tried couple of ways but it doesnt work

@Result(name = "input", type="redirect-action", location="resend.action")

Also tried
@Action(resend).

 Appreciate your quick help.

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: how to replicate the redirect-action result type in annotation way convention plugin

Arjun
Hey.. Thanks yaar. I was facing the same problem
Reply | Threaded
Open this post in threaded view
|

Re: how to replicate the redirect-action result type in annotation way convention plugin

Abraham
Como se configura el result type="tiles" en struts2 con anotaciones, ya que con anotaciones no se usa el archivo struts.xml