JSP vs Velocity what is better?

前端 未结 8 2182
滥情空心
滥情空心 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:47

    Velocity or even better FreeMarker. In JSP you cannot have runtime dispatch for pojo hierarchies and everything is statically typed which is a pain. Moreover if you create many JSP2.0 custom tags (say more than 100-150) then your development-deployment cycle will slow down heavily due to inefficiencies of Jasper to resolve dependencies efficiently.

    On the other hand JSP has great tool support.

    slow JSP compilation references:

    http://www.mailinglistarchive.com/users@tomcat.apache.org/msg10786.html

    http://marc.info/?l=tomcat-dev&m=119377083422720&w=2

提交回复
热议问题