I'm using prototypejs templates on a JSP file. But jsp file tries to parse #{} tags of prototypejs templates and hence it breaks.
How can I have jsp not parse them. I other words, how can I escape those tags?
Thanks.
Escape it with \
: var template = new Template('<a href="\#{href}" title="\#{title}">\#{name}</a>');
Encode it as entity: var template = new Template('<a href="#{href}" title="#{title}">#{name}</a>');
Move it to JavaScript file.
Move it to Java code and write on JSP using EL ${}
or JSTL <c:out />
or Stuts <bean:write />