Results 1 to 2 of 2
  1. #1
    mjwoodford is offline Member
    Join Date
    Sep 2009
    Posts
    6
    Rep Power
    0

    Default Apache Velocity template file and output locations

    Hi,

    I am new to Velocity and was wondering, is it possible to place the template '.vm' files and set the output location for the files generated both external to the jar within which the code is contained?

    Many thanks in advance!

    MattW

  2. #2
    mjwoodford is offline Member
    Join Date
    Sep 2009
    Posts
    6
    Rep Power
    0

    Default Resolved - velocity.properties file

    Hi,

    With further reading, I resolved the problem. The reference to the '.vm' files is set within the velocity.properties file (the value being 'file.resource.loader.path')

    To set the output path, this is done using the standard 'FileWriter' class.

    MattW

Similar Threads

  1. Velocity Error
    By trilochan in forum New To Java
    Replies: 3
    Last Post: 09-07-2009, 03:28 PM
  2. Using apache for reading a doc file
    By thehero in forum Advanced Java
    Replies: 0
    Last Post: 03-13-2009, 07:16 AM
  3. Replies: 7
    Last Post: 11-19-2008, 03:09 PM
  4. Velocity / XML response
    By sabatier in forum XML
    Replies: 0
    Last Post: 07-24-2007, 02:13 PM
  5. Velocity, cannot find resource
    By sandor in forum Web Frameworks
    Replies: 1
    Last Post: 05-17-2007, 11:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •