http://www.velocityreviews.com/forums/t129212-ot-jsp-escape-el-expressions.html
:
The problem:
Using JQuery template,
The javascript when included in the JSP, evaluated fields like "${name}" into JSP EL expressions as obvious. But I wanted them to be included in the templates as is.
Solution:
${'${'}name}
Note:
Using
<script id="searchFriendTemplate" type="text/x-jquery-tmpl">
for declaring the template.
http://api.jquery.com/template/
:).
:
The problem:
Using JQuery template,
The javascript when included in the JSP, evaluated fields like "${name}" into JSP EL expressions as obvious. But I wanted them to be included in the templates as is.
Solution:
${'${'}name}
Note:
Using
<script id="searchFriendTemplate" type="text/x-jquery-tmpl">
for declaring the template.
http://api.jquery.com/template/
:).
No comments:
Post a Comment