You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by lily <vc...@gmail.com> on 2013/06/25 22:02:59 UTC

Struts2 with Jersey

Have anybody tried with using jersey along with struts for the rest api. 

Before I have an execute() method in the rest api that has code for
redirecting into get , and now if I replace my code with jersey path
annotations how can I use the work done by action in struts



--
View this message in context: http://struts.1045723.n5.nabble.com/Struts2-with-Jersey-tp5712879.html
Sent from the Struts - User mailing list archive at Nabble.com.

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


Re: Struts2 with Jersey

Posted by Frans Thamura <fr...@meruvian.org>.
Our yama work. Yama.java.net use jaxrs and struts2. We share same spring
service. and the jersey and s2 work separtely

F
On Jun 26, 2013 1:21 PM, "Lukasz Lenart" <lu...@apache.org> wrote:

> Struts2 doesn't support JAX-RS spec, so you cannot mix those two. If
> you annotated your action as a JAX-RS bean, Jersey will take control
> over, Struts2 won't be engaged
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2013/6/25 lily <vc...@gmail.com>:
> > Have anybody tried with using jersey along with struts for the rest api.
> >
> > Before I have an execute() method in the rest api that has code for
> > redirecting into get , and now if I replace my code with jersey path
> > annotations how can I use the work done by action in struts
> >
> >
> >
> > --
> > View this message in context:
> http://struts.1045723.n5.nabble.com/Struts2-with-Jersey-tp5712879.html
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > 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
>
>

Re: Struts2 with Jersey

Posted by Lukasz Lenart <lu...@apache.org>.
Struts2 doesn't support JAX-RS spec, so you cannot mix those two. If
you annotated your action as a JAX-RS bean, Jersey will take control
over, Struts2 won't be engaged


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2013/6/25 lily <vc...@gmail.com>:
> Have anybody tried with using jersey along with struts for the rest api.
>
> Before I have an execute() method in the rest api that has code for
> redirecting into get , and now if I replace my code with jersey path
> annotations how can I use the work done by action in struts
>
>
>
> --
> View this message in context: http://struts.1045723.n5.nabble.com/Struts2-with-Jersey-tp5712879.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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