我正在嘗試使用Struts2更新頁面(using jOWL to display an ontology)。原始HTML頁面使用jQuery模板,有幾行如下:在Struts2中使用jQuery模板
<h2 class="propertybox title" data-jowl="rdfs:label">${rdfs:label}</h2>
<span class="alt">${?p}</span><span>: </span><span>${?t}</span>
顯示一個在jQuery腳本文件中確定的變量。這適用於.html文件。但是,.jsp文件認爲我正在嘗試使用Struts變量而不是jQuery模板。遇到冒號和問號時它會崩潰。
我的確發現了一些jQuery Struts2 libraries,但我沒有看到任何將映射到jQuery模板的標籤。有沒有另一種方法來做到這一點?
可能重複的[jQuery的TMPL和JSP代碼不打很好。](http://stackoverflow.com/questions/6380074/jquery-tmpl-and-jsp-code-not-playing-nicely) – BalusC