I look at various libraries that can be used as templates in my project, and now Apache Velocity looks like a good candidate. I have the following doubts regarding its use:
Is it possible to specify the SQL database query in the template and use the return value of the query to populate the parameter ?. I found the following example in the Velocity user guide:
Hello,
However, the manual explains little SQL query execution. Is it possible to define a SQL SELECT query that returns a value and assigns this value to a variable in the template? I am wondering if something like the example below is possible?
Hello,
It would be appreciated if you could shed some light on this. Is anyone enough to provide an example, or point me to a place where I can find additional documentation about this?
java velocity
Ramishka dasanayaka
source share