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.
精彩评论