Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » JSP/Expression Language Content Assist?
JSP/Expression Language Content Assist? [message #1508581] Fri, 12 December 2014 14:31
Rob Freundlich is currently offline Rob FreundlichFriend
Messages: 2
Registered: July 2009
Location: Greater Boston Area
Junior Member
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?
Previous Topic:css class suggestions list not prompting in eclipse Luna
Next Topic:Welcome>Tutorials>CreateAHelloWorldSWTApplication
Goto Forum:

Current Time: Wed Sep 30 23:17:12 GMT 2020

Powered by FUDForum. Page generated in 0.02743 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top