问题
I am working in JBoss Tools editors for HTML and JSP pages in Eclipse Luna.
One interesting thing I found about the different way these two editors work, is that some time they can auto-complete, but sometimes JBoss JSP editors fails. More precisely, when it comes to the "class" attribute which come with Bootstrap 3, the HTML editor works while JSP editor fails. Even though I can open the .jsp
file with JBoss HTML editor, the problem persists.
Is there some way to fix this?? They work consistently in some other cases, like this:
When I have a <form>
, and I type enctype="
or even enc
, in both editors when you press alt + /
, you will have enctype="application/x-www-form-urlencoded"
, which is amazing.
I attach GIF to show this strange behaviour:
回答1:
Thanks to @Alexey Kazakov I have checked my login.jsp
page and I found that bootstrap.css
is not introduced in this page, but in other pages, jsp
as well as html
, this file is introduced in <head>
part. So the editor is not working wrongly, it's my fault.
So JBoss Tools stay to be fantastic. ;)
来源:https://stackoverflow.com/questions/33293627/jboss-tools-for-jsp-make-content-assist-work-for-bootstrap-class-as-in-html-e