Is content assist possible in the follow scenerio in my jsp view?
List products;
products= dao.getProductList;
request.setAttribute("products", products);
<c:forEach var="product" items="${products}">
<c:out value="${product. <-- is content assist here on the product model开发者_运维问答 javabean??
I kind of think it is not because how would Eclipse know that I am working on Product.java
?
No, this generally isn't possible. JSP EL is a dynamic language, Eclipse doesn't have the information it needs to perform auto-complete.
You can try my plugin. It is available at : http://fast-code.sourceforge.net/. It is not as sweet as content assist but you can print field name of any class in a jsp without opening the class.
The autocomplete can be enabled by adding jstl-api.jar to the classpath.
精彩评论