JSP vs Velocity what is better?

前端 未结 8 2131
滥情空心
滥情空心 2020-12-25 11:49

What is better between JSP and velocity in - Performance - Ease of use - Ease of creating reusable components - Availability of open source 3rd parties - IDE support

相关标签:
8条回答
  • 2020-12-25 12:50

    The advantages of Velocity as per above miss a couple of very important things from the engineers perspective:

    • strict separation of view from business logic (as above)
    • simple syntax that can be understood by graphic designers (as above)
    • compact code that is less of a nightmare to revisit later, see example link
    • non-servlet container deployment means easy deploy anywhere

    Those last two really make Velocity useful compared to JSP.

    0 讨论(0)
  • 2020-12-25 12:52

    Velocity is better It adapts to many application areas It offers a simple, clear syntax for the template designer It offers a simple programming model for the developer Because templates and code are separate, you can develop and maintain them independently The Velocity engine easily integrates into any Java application environment, especially servlets Velocity enables templates to access any public method of data objects in the context

    0 讨论(0)
提交回复
热议问题