开发者

Code Hints with JSTL in Netbeans

Is it possible to get code "hints" or code "completion" with JSTL in Netbeans?

I'm using Spring with JSPs as the View so there is really no way for the JSP to intuitively know what's on the pageContext. Is there a way to document or let netbeans know what type a model attribute is? This can be done with JavaScript in Netbeans so I wondered if it could also be done with JSP.

Example:

POJO

public class Person {
    private String fname;
    private String lname;
    /* Getters and Setters */
}

Controller

@RequestMapping(value="/person")
public void person(Model model) {
    Person person = new Person();
    person.setFname("John");
 开发者_如何学Go   person.setLname("Smith");
    model.addAttribute("person", person);
}

JSP, person.jsp

Hello there, ${person.<ctrl-space>

At this point I want to be able to have Netbeans tell me what properties are available to ${person}


Netbeans isn't that intelligent. IntelliJ is.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜