Results 1 to 2 of 2

Thread: How safe is to use JSP as the view technology for Spring MVC ?

  1. #1
    Join Date
    Sep 2006
    Location
    Dubai, UAE
    Posts
    26

    Default How safe is to use JSP as the view technology for Spring MVC ?

    I am evaluating different presentation technologies and frameworks in Java, and SpringMVC is an ideal choice for me considering the high scalability and ease-of-development requirements. But I am skeptical of using it along with JSP as the view technology.

    The Java EE 6 specification says that JSP is deprecated and facelets replaces JSP. That means there won't be any development on JSP and it will be vanished in next few releases, right.

    Then how safe is to use JSP for the new applications ?

    Spring MVC uses JSP as the default presentation technology, and not supporting Facelets, instead it supports Tiles and other templating technologies. JSF integration is not a solution, if we use JSF, we do not need SpringMVC at all, and we are losing all the benefits of using SpringMVC(avoid server-side heavy lifting, mainly).

    What is SpringFramework's position on this ? Do you see a future for JSP and hence SpringMVC ?

  2. #2
    Join Date
    Oct 2008
    Location
    Poland, Wrocław
    Posts
    424

    Default

    Hello

    First, "JSP is deprecated and facelets replaces JSP" only as a language for defining JSF views. However JavaEE doesn't say anything about MVC approaches (don't get yourself too far into discussions that JAX-RS IS MVC element). JavaEE people do different things and saying that "JSF is standard, do not use anything else" is not very smart.

    So if you prefer MVC (as an opposite to Component-based approach, like JSF or ASP.NET - mind that Microsoft is now promoting ASP.NET MVC), choose SpringMVC and the view technology you like. May it be JSP, Velocity, Freemarker, or (which I strongly recommend!) Thymeleaf. See yourself: http://blog.springsource.org/2012/10...-to-thymeleaf/

    regards
    Grzegorz Grzybek

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •