Skip to content
Advertisement

Tag: velocity

Spark-Java framework, Jetty and JSP files

Go easy please, I’m rather new to the whole web development thing and I’m a little perplexed. I have the Spark framework installed from Maven, which has Jetty as its underlying web/application server, correct? Jetty is embedded in the Spark jar so I can’t/shouldn’t mess with it. Is that correct so far? I read that Spark’s embedded Jetty should support

How to use String as Velocity Template?

What is the best way to create Velocity Template from a String? I’m aware of Velocity.evaluate method where I can pass String or StringReader, but I’m curios is there a better way to do it (e.g. any advantage of creating an instance of Template). Answer There is some overhead parsing template. You might see some performance gain by pre-parsing the

Advertisement