Creating a webapp with a t-shirt

This article on Spring MVC vs. Jersey suggests that Jersey is more web service oriented and serves HTML pages.

I like the idea of ​​Jersey and don't want to use a proprietary solution, since this link is Jersey with Spring 3.0? suggests using Spring. In the future I will want to create a RESTful web service, but for now I need to create a pretty standard webapp that requests a SOAP service and presents the responses on a web page. I do not want to use JSP or JSF, just just javascript gets into the update service.

Is there a standard way to serve web pages in Jersey, like some kind of template engine? Should I look for an alternative to Jersey such as Spring MVC or something completely different?

+3
source share
1 answer

If you want to work with Jersey, you do not need a template. It can create various kinds of output, such as XML, JSON, PLAINTEXT, etc. He will do all marshaling / unmarshaling transparently. An important point in REST is how you design your services. REST with Java (JAX-RS) with Jersey - The Tutorial is a really good tutorial that shows how to work with Jersey. I have no experience with Spring MVC RESTful services, but it looks really simulative for Jersey.

+1

All Articles