jsp - Using jQuery Templates in Struts2 -


i attempting update page using struts2 (using jowl display ontology). original html page uses jquery templates, having several lines such as:

<h2 class="propertybox title" data-jowl="rdfs:label">${rdfs:label}</h2> <span class="alt">${?p}</span><span>: </span><span>${?t}</span> 

to display variable determined in jquery script file. works enough .html file. however, .jsp file thinks attempting use struts variables rather jquery template. crashes when encounters colon , question mark.

i did find jquery struts2 libraries, didn't see tags map jquery templates. there way this?

your issue jsp thinks ${} el. need somehow escape part of express, isn't going pretty:

from jsp 2 spec:  literal values include character sequence ${, jsp 2.0 provides way escape them using sequence ${'${'. example, following character sequence translated literal value ${expr}:  ${'${'}expr} 

source: http://www.velocityreviews.com/forums/t129212-ot-jsp-escape-el-expressions.html


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -