• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Velocity, BBEdit, and Macs

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Fellow Mac Users,

I came across an issue I wanted to share with all of you. I decided to look into Velocity as a part of my exploration of MVC, servlets, and JSP. I found a well reviewed book and started to work through the examples. I found that if a template had more than one line, only the last line would appear. I was using BBEdit as my editor for the template and on a hunch I switched from Mac line endings to Unix line endings. Now all of the lines fromthe template appear.

So, I am guessing there is an issue, maybe configuration parameter, that needs to be addressed.

Just thought I would share this with the group.

Elton
 
Marshal
Posts: 67279
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whether Mac or Windows, you need to be careful with line endings. I almost always opt for Unix-style since most things seem to work best -- especially in the Jakarta world -- with those.
 
If you like strawberry rhubarb pie, try blueberry rhubarb (bluebarb) pie. And try this tiny ad:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!