I’m trying to set up a Gradle project with some Velocity functions in it. So far I have the following files: src/main/java/com/veltes/velotest.java: build.gradle: Now, when I run gradle assemble and gradle build everything is fine, but when I try to run the project (same for running the built jar in build/libs/ and for running the velotest class in IntelliJ), I
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