|
8:07:12 AM |
 |
I'm interested to know why JSP tags are nicer than Velocity directives though? Directives seem so neat compared to tags?[rebelutionary]
2 reasons...
1) JSP tags offer named parameters. For many macros/tags you often have different permutations of parameters that need to be passed but because Velocity macros are weakly typed and unnamed it makes it very hard.
2) You can look at a JSP tag and instantly determine whether it has a body or not - with Velocity macros you are never quite sure which can sometimes lead to malformed pages that are hard to fix.
... but I'm still a huge fan of Velocity!
|