* View code. The old taglib contained code that was to some extent
duplicated for the Velocity view. This needs to be refactored so that
views can share such implementations.

On this point. If you take a look at the code to Roller you'll see it's author created a novel way to reuse Tags across view layers both for JSP and Velocity. He simply keeps the functionality in the Tag itself and instantiates an instance and sets the attribute arguments and calls a method emit() that invokes doStartTag, doEndTag passing an inputparameter as a StringWriter. However, I do not believe his approach works for tags that operate on their body content though but it was an interesting approach/hack to share code b/w jsp and velocity view layers none the less. See his code for HybridTag.java and Macros.java.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


Reply via email to