Skip to content

Tag: freemarker

SQLException: Column not found

My sql query should take all the fields from the table and transfer them to the FTL page using the UserMapper template. The template indicates which object to create and to which fields of the object which table columns to match. In summary: all the fields work correctly, but the seanceNumber field gives the …

Feemarker writing images to html

is there anyway to write image in freemarker instead of giving link as <img src=”${pathToPortalImage} Note : cant we use otputstream or something in freemarker ? Answer You can embed the image as base64 directly inside the html img tag. To convert an image to base 64 you can use Apache Commons (codec…