在MyEclipse中創(chuàng)建jsp之后自動(dòng)用MyEclipse JSP Editor:
1)依次點(diǎn)擊:windows–>perferences–>general–>editors->file associations.
2)在“File type”列表框中找到j(luò)sp,點(diǎn)擊后在下方的”Associated editors“窗口中顯示當(dāng)前用于jsp的編輯器.
3)選中“MyEclipse JSP Editor”.然后點(diǎn)擊“default”按鈕即可.
改變Eclipse或者M(jìn)yEclipse新建jsp文件的默認(rèn)編碼:
window-preferences-General-WorkSpace,在右邊的窗口Text file encoding中選Other右面的UTF-8.
window-preferences-General-ContentType 的右邊窗口,改成utf-8.
window-preferences-myEclipse-files and editors-jsp里面有encoding,改這里為ISO10646/UTF-8.