当前位置: 动力学知识库 > 问答 > 编程问答 >

jsp - Is Eclipse content assist possible within jstl

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: