下面的代碼片段:xssAPI不能在我的CQ5組件JSP來解決錯誤
<%@taglib prefix="cq" uri="http://www.day.com/taglibs/cq/1.0" %>
<%@taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.0" %>
<sling:defineObjects />
<cq:defineObjects />
<label class="form_label" for="send_to"><%=xssAPI.encodeForHTML(sendToLabel)%></label>
連我也包括仍然global.jsp獲得編譯錯誤
沒有Tomek,sendToLabel已經聲明String sendToLabel = propertiesfile.getProperty(「sendToLabel」);.我沒有在我的描述中包含整個代碼。我們正在從屬性文件中檢索此值 – user2930621
您是否可以發佈整個代碼或製作組件的更簡單的版本,以免遭受同樣的問題?幷包含編譯錯誤體? –