Thanks Chris! CS> IMO, the JSP effort was a stepping-stone on a path to better CS> technologies like Velocity, FreeMarker, and others. If I were CS> king, JSP would just go away. Just my POV of course [...]
cjb> what do you like better about Velocity, FreeMarker, etc. cjb> more than JSP? CS> I started using Velocity years ago [...] It definitely has its CS> warts but it's relatively actively maintained, and anything I CS> need I can get in and do myself, submit patches, etc. CS> CS> Advantages over JSP (IMHO): CS> CS> - Can't execute direct Java code, ever CS> - Non-verbose syntax CS> - No limit on template length [...] CS> - Easy to install POJO "tools" which just expose Java objects CS> to the runtime so you can $tool.doSomething() [...] CS> - Can load templates from anywhere (disk, DB, URL, etc.) Good to know! I also see that it is an ASF project. Is Velocity interpreted or compiled like JSP? I'm thinking of performance impacts, like during loops. Answering my own question, the Velocity FAQ says, "Velocity doesn't compile your templates. They are parsed into an AST (abstract syntax tree) and that is what gets cached." -- Cris Berneburg CACI Senior Software Engineer ________________________________ This electronic message contains information from CACI International Inc or subsidiary companies, which may be company sensitive, proprietary, privileged or otherwise protected from disclosure. The information is intended to be used solely by the recipient(s) named above. If you are not an intended recipient, be aware that any review, disclosure, copying, distribution or use of this transmission or its contents is prohibited. If you have received this transmission in error, please notify the sender immediately.
