开发者

Is Eclipse content assist possible within jstl

开发者 https://www.devze.com 2023-02-04 10:32 出处:网络
Is content assist possible in the follow scenerio in my jsp view? List products; products= dao.getProductList;

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消