$ {} is used by both JSP and JS, so what happens is that $ {} in JS template literals is interpreted and deleted before being compiled into servlets. Is there a way in which Java can ignore $ {} without completely disabling the function using isELIgnored?
const subject = 'world'; let greet = `hello ${subject}!`
turns into the next in the browser
const subject = 'world'; let greet = `hello !`
Here, the best I came up with is really not digging how ugly it is.
<c:out value="var body = `pq_country=${country}&pq_population=${population}`;" escapeXml='false'/>
source share