,ch14.9433  Page 472  Monday, February 14, 2005  12:55 PM
Example 14 26. VelocityViewServlet declaration and mapping (continued)
    
        org.apache.velocity.toolbox
        /WEB INF/toolbox.xml
    
    
        org.apache.velocity.properties
        /WEB INF/velocity.properties
    
    2
...
    velocity
    *.vm
Velocity has the notion of a toolbox containing tools you can use in your tem 
plates. A tool is essentially a Java class you can reference by name. The /WEB INF/
toolbox.xml file, shown in Example 14 27, declares the Struts tools available to
your templates.
Example 14 27. Toolbox containing the Velocity Struts tools
  Copyright 2003 2004 The Apache Software Foundation.
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE 2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  $Id: ch14,v 1.3 2004/11/18 13:28:26 jhawks Exp mhutchin $
  >
    
        math
        application
        org.apache.velocity.tools.generic.MathTool
    
472 | Chapter 14: Tiles and Other Presentation Approaches
This is the Title of the Book, eMatter Edition
Copyright   2005 O'Reilly & Associates, Inc. All rights reserved.






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

strutsweb hosting

 

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved