2015-12-04 49 views
1

我面臨的問題是「未定義的CSS文件」。我只給了正確的道路。但它仍然顯示錯誤。未定義的CSS文件錯誤

<link rel="stylesheet" 
 
\t href="${pageContext.request.contextPath}/paramquery/pqgrid.min.css" /> 
 
<script 
 
\t src="${pageContext.request.contextPath}/paramquery/pqgrid.min.js"></script> 
 

 
<!--jqueryui touch punch for touch devices--> 
 
<script 
 
\t src="${pageContext.request.contextPath}/paramquery/touch-punch/touch-punch.min.js"></script> 
 

 
<!--PQ Grid Office theme--> 
 
<link rel="stylesheet" 
 
\t href="${pageContext.request.contextPath}/paramquery/themes/Office/pqgrid.css" />

Error

enter image description here

enter image description here

這個問題,我面對的問題。請幫我解決這個問題。

+0

最終結果應該是'http:// your.domain.here/resources/js/jquery-ui.js'。我想你是直接打開一個jsp文件,而無需將其託管在服務器上? – AVAVT

回答

0

你不能把Sprint的MVC編碼在簡單的jQuery頁面,除非它是通過服務器運行呈現Spring MVC的,只是前面加上上下文路徑「http://stacksnippets.net/js」,而不是$ {} pageContext.request.contextPath