最近做了個Ajax的應用-——驗證用戶名是否可用,也不知道是不是這樣的問題導致parseJSON()方法不能調用,最後找到問題所在了。大家看看是不是這個問題。
這是顯示不出來的Ajax的struts.xml文件:
Xml代碼
<constant name="struts.custom.i18n.resources" value="messageResource"/>
<constant name="struts.i18n.encoding" value="UTF-8"/>
<constant name="struts.custom.i18n.resources" value="messageResource"/>
<constant name="struts.i18n.encoding" value="UTF-8"/> 顯示出來的Ajax的
struts.xml文件:
Xml代碼
<constant name="struts.i18n.encoding" value="GBK"/>
<constant name="struts.i18n.encoding" value="GBK"/> 如圖正確所示():
這樣後就可以了。
SSH版高校畢業生管理系統開發手記(三)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
【Struts2.0】Struts 應用轉移到 Struts 2 ( 二 )
shaoboyy
2018-08-25 09:57:41
【Struts2.0】Struts 應用轉移到 Struts 2 (一)
shaoboyy
2018-08-25 09:57:41
Struts2中<s:select>使用
mouse3150
2018-08-24 13:09:23
Struts2.X自定義標籤(時間標籤)
iteye_5549
2018-08-23 11:05:35
Struts2.0自定義標籤(時間標籤)
iteye_5549
2018-08-23 11:05:30