vm使用
1、首先在WEB.XML 中加入下面
?
<servlet><servlet-name>velocity</servlet-name><servlet-class>org.apache.velocity.tools.view.servlet.VelocityViewServlet</servlet-class><init-param><param-name>org.apache.velocity.toolbox</param-name><param-value>/WEB-INF/classes/toolbox.xml</param-value></init-param><init-param><param-name>org.apache.velocity.properties</param-name><param-value>/WEB-INF/classes/velocity.properties</param-value></init-param><load-on-startup>10</load-on-startup></servlet><servlet-mapping><servlet-name>velocity</servlet-name><url-pattern>*.vm</url-pattern></servlet-mapping>
?2、加入vm的jar包