At 8:32 AM -0800 12/31/03, Will Glass-Husain wrote:
I think your problem is an illegal #then. It's a PITA I know to keep switching languages, easy to overlook these things. Remember in velocity the syntax is
#if (condition) display this
#elseif (another condition) display that
#else otherwise display this
#end
WILL
----- Original Message ----- From: "Brad Cox" <[EMAIL PROTECTED]> To: "Geir Magnusson Jr" <[EMAIL PROTECTED]>; "Velocity Users List" <[EMAIL PROTECTED]> Sent: Wednesday, December 31, 2003 8:16 AM Subject: Re: Ampersands choke XHTML parsers
Geir, apparently I don't have the version with your changes. I've tried the latest nighly build and the CVS checkout for jakarta-velocity according to the instructions on the CVS download build.
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout jakarta-velocity
Built that with ant and am using bin/velocity-1.5-dev.jar from the top level dir, mod time=today.
> But I keep getting velocity syntax error Encountered "and" at line 2, > column 15. Was expecting one of: <RPAREN> ... "-" ... "+"completeness :... "*" ... "/" ... "%" ... "&&" ... "||" ... "<" ... "<=" ... ">" ... ">=" ... "==" ... "!=" ... "=" ... Here's the text in question
#if ($op.ok() and $identifier.ok() and $password.ok()) #then #set ($account = $course.requestLogin($context.dbms, $identifier, $password)) #if ($account ne null) #then $context.setViewer($person) $context.gotoPage($task.findPage("locker")) #end #end #header()
At 6:43 AM -0500 12/30/03, Geir Magnusson Jr wrote: >I'm about to commit the change - we'd do it for everything, for(JWAA)> >&& || < > <= >= != == > >and or lt gt le ge ne eq
-- Brad J. Cox, PhD, 703 361 4751, http://virtualschool.edu http://virtualschool.edu/mybank Digital Rights Management System http://virtualschool.edu/jco Java Cryptographic Objects (JCO) http://virtualschool.edu/jwaa Java Web Application Architecturehttp://virtualschool.edu/java+ Java Preprocessor (Java+)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Brad J. Cox, PhD, 703 361 4751, http://virtualschool.edu http://virtualschool.edu/mybank Digital Rights Management System http://virtualschool.edu/jco Java Cryptographic Objects (JCO) http://virtualschool.edu/jwaa Java Web Application Architecture (JWAA) http://virtualschool.edu/java+ Java Preprocessor (Java+)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
