velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@adeptra.com>
Subject Re: #*# causes lexical error?
Date Fri, 09 Aug 2002 19:42:47 GMT
On 8/9/02 3:33 PM, "Tim Colson" <tcolson@cisco.com> wrote:

> I was trying to make an #if#else#end block without extra spaces/newlines
> and accidently stuck in :
> 
> #*#
> 
> Caused quite a huff for the parser (see below) - the error is almost as
> cryptic as a JSP error for the template person to decipher. ;-)
> 
> Also - uh, being diabolical - how do I output two (or more) bangs in the
> template? 
> (i.e. I want ## output)

Do you see this in 1.4?

> 
> Thanks,
> Tim
> P.S. It would really make me warm and fuzzy if _anybody_ would take a
> minute to comment on the last past I had regarding VELTOOLS ;-)
> 
> 
> VelocityServlet : Error processing the template
> org.apache.velocity.exception.ParseErrorException: Lexical error:
> org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line
> 158, column 11.  Encountered:  after :
> ""org.apache.velocity.exception.ParseErrorException: Lexical error:
> org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line
> 158, column 11.  Encountered:  after : ""
> at org.apache.velocity.Template.process(Template.java:181)
> at
> org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(Re
> sourceManagerImpl.java:466)
> at
> org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(Res
> ourceManagerImpl.java:384)
> at
> org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.
> java:814)
> at
> org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.
> java:796)
> at
> org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleto
> n.java:337)
> at
> org.apache.velocity.servlet.VelocityServlet.getTemplate(VelocityServlet.
> java:540)
> at
> org.apache.velocity.tools.view.servlet.VelocityViewServlet.handleRequest
> (VelocityViewServlet.java:282)
> at
> org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.ja
> va:372)
> at
> org.apache.velocity.servlet.VelocityServlet.doPost(VelocityServlet.java:
> 342)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcher
> Impl.java:194)
> at
> org.apache.struts.action.ActionServlet.processActionForward(ActionServle
> t.java:1758)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
> at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
> at com.cisco.hrit.core.servlet.ServletBase.doGet(Unknown Source)
> at com.cisco.hrit.core.servlet.ServletBase.doPost(Unknown
> Source)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at com.cisco.hrit.core.servlet.ServletBase.service(Unknown
> Source)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcher
> Impl.java:194)
> at
> org.apache.struts.action.ActionServlet.processActionForward(ActionServle
> t.java:1758)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
> at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
> at com.cisco.hrit.core.servlet.ServletBase.doGet(Unknown Source)
> at com.cisco.hrit.core.servlet.ServletBase.doPost(Unknown
> Source)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at com.cisco.hrit.core.servlet.ServletBase.service(Unknown
> Source)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
> a:797)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
> ttpConnectionHandler.java:210)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
> )
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49
> 8)
> at java.lang.Thread.run(Thread.java:484)
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:velocity-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:velocity-user-help@jakarta.apache.org>
> 

-- 
Geir Magnusson Jr. 
Research & Development, Adeptra Inc.
geirm@adeptra.com
+1-203-247-1713



--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message