Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse jsp - no colors, code completion and error detection

Tags:

java

eclipse

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 installed. any ideas ?

thanks!

like image 489
ufk Avatar asked Mar 15 '11 17:03

ufk


2 Answers

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.

like image 88
Chris Avatar answered Nov 15 '22 23:11

Chris


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.

like image 28
Dave G Avatar answered Nov 15 '22 23:11

Dave G