Results 1 to 2 of 2

Thread: Using Long in velocity templates

  1. #1

    Default Using Long in velocity templates

    I know this is more of a velocity question, but has anyone figured out a good way to deal with Long objects in velocity templates? If you have the following velocity code:

    Code:
    ${myNumber > 0}
    This works if myNumber is an Integer, but I haven't found any way to use greater than or less than with a Long. I am using a Long to represent the PK of objects that model database rows. This seems to be common practice, so I figure there has to be some way to use greater and less than with velocity templates.

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    Looks like a bug. Can't think of any good reason it wouldn't work.

Similar Threads

  1. Replies: 2
    Last Post: Sep 22nd, 2005, 04:11 PM
  2. Replies: 2
    Last Post: Jul 25th, 2005, 04:51 AM
  3. FreeMarker vs Velocity
    By Martin Kersten in forum Architecture
    Replies: 8
    Last Post: May 30th, 2005, 09:21 AM
  4. Velocity templates need help
    By kelvint in forum Web
    Replies: 1
    Last Post: Nov 24th, 2004, 03:21 AM
  5. Replies: 3
    Last Post: Oct 19th, 2004, 09:20 AM

Posting Permissions

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