Migrating to velocity-tools 2.0

Lukasz Lenart <[email protected]>
Newsgroups gmane.comp.jakarta.velocity.user
Message-ID <CAMopvkOSbX8_Vmc-Su6FKkUsKHyEp3NoX3WmAhFVCmfhdH7SEQ@mail.gmail.com>
Hi,

I would like to migrate Struts 2 to use the latest Velocity Tools 2.0,
but as I see many thing changes and it isn't just a simple library
replacement.

I've started with VelocityDecoratorServlet [1] from Sitemesh plugin
but stuck, many constants are missing:
- CONTENT_TYPE
- DEFAULT_CONTENT_TYPE
- DEFAULT_OUTPUT_ENCODING

Where to find them or how to replace them ?

[1] https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/VelocityDecoratorServlet.java


Thanks in advance
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.