JSTL標簽出錯的解決方法. (ZT)
用Spring或是只用jstl的朋友大多都會遇到過:?
?????????????????????According to TLD or attributedirective in tagfile, attributevaluedoes
notacceptanyexpressions
這個問題, 經常會覺得摸不著頭腦, 我的代碼沒問題啊(這是程序員經常說的一句話, hoho~), 確實, 代碼沒問題, 其實我也不知道是怎么回事, 不過如果你遇到上面的問題, 可以試試下面的兩種解決辦法:
把url原來的/WEB-INF/c.tld*等改為http://java.sun.com/jstl/core**(如果原來就是使用http://http://java.sun.com/jstl/core的話,可以改成/WEB-INF/c.tld試一下,可能是因為TLD文件不能被訪問)
把<web-app *****>
??? </web-app>中的*全部去掉
?????????????????????According to TLD or attributedirective in tagfile, attributevaluedoes
notacceptanyexpressions
這個問題, 經常會覺得摸不著頭腦, 我的代碼沒問題啊(這是程序員經常說的一句話, hoho~), 確實, 代碼沒問題, 其實我也不知道是怎么回事, 不過如果你遇到上面的問題, 可以試試下面的兩種解決辦法:
把url原來的/WEB-INF/c.tld*等改為http://java.sun.com/jstl/core**(如果原來就是使用http://http://java.sun.com/jstl/core的話,可以改成/WEB-INF/c.tld試一下,可能是因為TLD文件不能被訪問)
把<web-app *****>
??? </web-app>中的*全部去掉
posted on 2006-06-15 15:34 風人園 閱讀(202) 評論(0) 編輯 收藏 所屬分類: Java