开发者

eclipse jsp - no colors, code completion and error detection

I'm trying to find a way to have colors and code completion and error detection in jsp pages. i have

Eclipse Java EE IDE for Web Developers. Version: Helios Service Release 2.

I cannot install anything using the eclipse web tools platform because everything is already 开发者_StackOverflow中文版installed. any ideas ?

thanks!


Are the JSP pages opened with the right editor? Right click on your JSP file -> Open With -> JSP Editor. You can set the editor in Preferences -> General -> Editors -> File Associations.


Is your project declared as a "Web" or "J2EE" project? If not go into the project facets and add the "Dynamic Web Module" facet to it.

At that point your project /should/ be recognized as a web project and the highlighting and syntax decorations will be enabled.


i solved this issue by doing this :

Right click on your project then go to Properties -> Targeted Runtime -> Apache tomcat

then restart eclipse.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜