Keshava Murthy writes: > Hi Matt, > I have not used pull tool before, If you have no problems can you send me > the pull tool code that you have written? > > regards, > Keshava Murthy. S
OK, here is the code, but be aware that I haven't tested the newline escaping itself and that other things are incomplete:
To use this, change the package line at the top to match your project and put it in a subdirectory called util. Add this to your TurbineResources.conf file in the PULL TOOLS section # Makes formatting output easier. tool.global.format=com.laserequation.laser.util.FormatTool Of course change com.laserequation.laser to whatever. Now in velocity templates you should be able to do things like $format.decimal($item.getValue(3).asDoubleObj(), '##.##') and $format.newlines($lalala) Hope that helps. mch > ----- Original Message ----- > From: "Matt Hughes" <[EMAIL PROTECTED]> > To: "Turbine Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, May 27, 2003 8:32 PM > Subject: Problem displaying String data > > > > > > Keshava Murthy writes: > > > Hi > > > I have a vm file conataining text areas. If user enters text data in > one > > > line and press enter key and enter some text again and saves the form > the > > > data is getting saved without any problem. However when I try to fetch > data > > > and diplay it, I am having problems because the data was saved with > "/n". > > > How can I overcome this problem? > > > > I wrote a pull tool to do things like this, but I use it to replace & > > with & and so on. It could easilly do other substitutions as > > well. The same tool also has methods for formatting currency and > > numbers, which is a lot easier than trying to format a bunch of > > records in java. > > > > -- > > Matt Hughes > > + [EMAIL PROTECTED] > > + http://www.enel.ucalgary.ca/~hughes > > + "Were there monkeys? Some terrifying space monkeys maybe got loose?" > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- Matt Hughes + [EMAIL PROTECTED] + http://www.enel.ucalgary.ca/~hughes + "Were there monkeys? Some terrifying space monkeys maybe got loose?"
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
