Mam taką metodę:
private String buildBody(String caseName, String caseId) {
var ctx = new Context();
ctx.setVariable("caseId", caseId);
ctx.setVariable("caseName", caseName);
return templateEngine.process(templateName, ctx);
I teraz odczytuję te zmienne w pliku html:
<html>
<body>
[[${caseId}]] - to jest caseId.<br/><br/>
<a href=[[${caseName}]] >Case name</a><br/><br/>
</body>
</html>
to jest problem z odczytem tej zmiennej jak ją przypisuje do href. Dostaję komunikat w intellij:
cannot resolve file '[[$'{'caseName}]]'
Niby pierdoła, ale coś nie idzie? Jakiś pomysł?