views:

247

answers:

1

I've read this article describing how to format jsp's in eclipse. I have WTP installed and the jsp tags are colored. However, there is no indenation on the html (i.e. <html> and <body> etc. are all at the same level). I've tried Source -> Format with no success. Is this a bug?

A: 
  • make sure you open the jsps with the JSP editor (Right click > Open with)
  • open it and try CTRL + SHIFT + F
  • get a fresh installation of eclipse (don't delete the current one), and try it there
Bozho