简体   繁体   中英

How can I use the HTML Editor with JSP content in Eclipse Luna? Getting Unsupported Content Type error

When I open a JSP, I get a unsupported-content-type error telling me to see the Content Type preferences panel.

在此处输入图片说明

I open the Content Types Preferences page and check Text/HTML content types and see that *.jsp is a File Association, but all other associations are 'locked'.

在此处输入图片说明

From there I check the file association and click on *.jsp. Now I see that I've associated the HTML Editor with JSP pages and set it to default, but see that it is locked by HTML content type.

在此处输入图片说明

Can someone please explain how to properly associate the JSP editor with HTML content so that I get correct HTML editing with colorization and tag matching?

In Eclipse Juno installing the JSF Tools . You can find them in the Eclipse Java EE Developer Tools , select only the features JSF Tools in the Confirm Selected Features window and install them. It associates the *.jsp, *.jsf... extensions with the JSP editor.

Try it in Luna

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM