JSP/Expression Language Content Assist? [message #1508581] |
Fri, 12 December 2014 09:31 |
Eclipse User |
|
|
|
I'm working on a small Java/JSP/JSTL project (no JSF). In my servlet, I create an object of type my.package.DailyCalendar and then call request.setAttribute("calendar", myObject).
In my JSP, I have two choices for accessing this object. I can use a scriptlet, like this:
<%
DailyCalendar calendar = (DailyCalendar)request.getAttribute("calendar");
SomeOtherClass stuff = calendar.**CURSOR**
%>
or Tag Libraries and Expression Language like this:
<jsp:useBean id="calendar" scope="request" type="my.package.DailyCalendar"/>
<c:set var="stuff" scope="page" value="${calendar.**CURSOR**}"/>
In either case, when I have the cursor at the spot marked **CURSOR** and press Ctrl+Space, I'd like to get Content Assist. In the scriptlet case, it works, and in the Tag Libraries/Expression Language case, it doesn't.
This is my first Java/JSP project since the early 2000's, but even back then, taglibs and the EL were being recommended over scriptlets, and the syntax fits in with the surrounding HTML much better, so I'd prefer to use them if possible. However, the lack of Content Assist makes it somewhat difficult.
Is there any way to get Content Assist for EL expressions?
|
|
|
Powered by
FUDForum. Page generated in 0.33944 seconds