Question: can jstl be used inside javascript?
Answer: 3 Answers. There is no meaning to the idea of being "inside Javascript" when you're talking about server-side JSP interpretation. ... The JSTL fn:escapeXml() function is useless when you're interpolating a JSP variable into a part of the page that will be interpreted as Javascript source by the browser.