Re: Comparing strings

2005-09-19 Thread Will Glass-Husain
By the way, this is already in JIRA http://issues.apache.org/jira/browse/VELOCITY-350 WILL - Original Message - From: Will Glass-Husain [EMAIL PROTECTED] To: Velocity Users List velocity-user@jakarta.apache.org; [EMAIL PROTECTED] Sent: Saturday, September 17, 2005 10:21 PM Subject:

Valid characters for value in VTL - urgent

2005-09-19 Thread Ravikanth L
Hi All, I would like to know the valid characters that we can use for a value in VTL. I tried the following #set($var = My string with special chars##) It throws ParseErrorrException as: org.apache.velocity.exception.ParseErrorException: Lexical error:

Re: Valid characters for value in VTL - urgent

2005-09-19 Thread Christoph Reck
Hi, Ravikanth L wrote: Hi All, I would like to know the valid characters that we can use for a value in VTL. I tried the following #set($var = My string with special chars##) Velocity defines a line-comment starting with the characters ## Also note that Velocity offers a feature called

UnicodeFileResourceLoader contributed

2005-09-19 Thread mailmur
Will, I could edit UnicodeFileResourceLoader a bit to follow new not-so-heavily-synchronized FileResourceLoader code I contributed few months ago. And then compile it against current subversion codebase. Then I add it to the contributed list if only manage to use Wiki pages. I have never edited

Re: Valid characters for value in VTL - urgent

2005-09-19 Thread Ravikanth L
Hi Christoph, Thanks a lot for replying back. As far as the suggestions you gave, i can't use failsafe escaping apporoach as i am not hardcoding the values in the template. As i said earlier, we are having an xml file where in we define element name and its value as element name=myvar

Re: recursive parsing

2005-09-19 Thread Robert Koberg
[EMAIL PROTECTED] wrote: Hi, I've got a template which basically shows a result from a database, e.g: span a href=$menu.getLink()$menu.getText()/a /span which works great. Only problem is that, the $menu.getLink() returned from the db is something like /editPage?pageId=$pageId $pageId is

Re: recursive parsing

2005-09-19 Thread Andrew Mason
Excelent, Thanks for your help. I think i am doing something slightly wrong though. I have this in my menu macro. tr td align=left width=100% class=$td_class #set( $link = $menuItem.getLink() ) #set( $link = $link ) a href=$link class=z_menu

Re: recursive parsing

2005-09-19 Thread Andrew Mason
On Mon September 19 2005 12:40 pm, Robert Koberg wrote: [EMAIL PROTECTED] wrote: Hi, I've got a template which basically shows a result from a database, e.g: span a href=$menu.getLink()$menu.getText()/a /span which works great. Only problem is that, the $menu.getLink()

Re: recursive parsing

2005-09-19 Thread Robert Koberg
Andrew Mason wrote: Why not pregenerate the page(s)? This way they can run normally and you get a caching effect by having most of the page already rendered. Not sure what you mean sorry.. I've got the menu system set up like this so that it is possible for it to appear slightly different

Re: recursive parsing

2005-09-19 Thread Andrew Mason
On Mon September 19 2005 2:37 pm, Robert Koberg wrote: Andrew Mason wrote: Why not pregenerate the page(s)? This way they can run normally and you get a caching effect by having most of the page already rendered. Not sure what you mean sorry.. I've got the menu system set up like this

Re: Valid characters for value in VTL - urgent

2005-09-19 Thread Christoph Reck
Hi Ravikanth, there is no such list of unallowed characthers in a string. Only the velocity syntax exists. Therefore up to Velocity 1.4, a string may not contain the quote character itself and a new-line character. Additionally you need care with the other symbols: \ $ # which have a meaning to

Re: UnicodeFileResourceLoader contributed

2005-09-19 Thread Will Glass-Husain
Mailmur, I think that would be useful. Editing a wiki page is pretty easy. (You need to create an account). Just look at the example contributed code pages. Thanks for offering to do this. WILL - Original Message - From: mailmur [EMAIL PROTECTED] To: Velocity Users List

Re: recursive parsing

2005-09-19 Thread Nathan Bubna
On 9/19/05, Andrew Mason [EMAIL PROTECTED] wrote: Excelent, Thanks for your help. I think i am doing something slightly wrong though. I have this in my menu macro. tr td align=left width=100% class=$td_class #set( $link = $menuItem.getLink() ) #set(