Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Content Assist supported for Expression Language in JSP?
Content Assist supported for Expression Language in JSP? [message #194791] Thu, 21 June 2007 16:56 Go to next message
Eclipse User
Originally posted by: erickson_d.yahoo.removethis.com

I would swear that at one time, WTP supported content assist in JSP
expression language. But, if I start an expression--"${"--all it does
for me is add " }" (and I don't really want that extra space).

No amount of Ctrl-Space gives me anything more than a message in the
status bar: "Content Assist not available at the current location". No
implicit objects are available to start the expression, and even if I
type a variable (introduced through a jsp:useBean action) myself, the
content assist refuses to offer completions for it's properties.

Is content assist available for JSP EL in WTP 1.5.4/Eclipse 3.2.2? If
so, any suggestions for getting it working?
Re: Content Assist supported for Expression Language in JSP? [message #194813 is a reply to message #194791] Thu, 21 June 2007 22:03 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2269
Registered: July 2009
Senior Member
Doug Erickson wrote:
> I would swear that at one time, WTP supported content assist in JSP
> expression language. But, if I start an expression--"${"--all it does
> for me is add " }" (and I don't really want that extra space).
>
> No amount of Ctrl-Space gives me anything more than a message in the
> status bar: "Content Assist not available at the current location". No
> implicit objects are available to start the expression, and even if I
> type a variable (introduced through a jsp:useBean action) myself, the
> content assist refuses to offer completions for it's properties.
>
> Is content assist available for JSP EL in WTP 1.5.4/Eclipse 3.2.2? If
> so, any suggestions for getting it working?

Are you within a Dynamic Web Project, or at least a Java project
that has the servlet jars on its build path?

--
Nitin Dahyabhai
Structured Source Editor


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Content Assist supported for Expression Language in JSP? [message #194821 is a reply to message #194813] Fri, 22 June 2007 00:01 Go to previous messageGo to next message
Eclipse User
Originally posted by: erickson_d.yahoo.removethis.com

Yes, in this simple test, it's a dynamic web application. It doesn't
work in a Java project with servlet jars either. The target runtime is
Tomcat 5.0, with a 1.4.2 JDK as the "JRE".

I thought, even though my app is set up with a Servlet 2.4 web.xml, that
maybe it was ignoring the EL. I tried to get auto-completion to add the
isELIgnored attribute to the page directive, but the available "isXXX"
attributes were only isErrorPage and isThreadSafe -- no isELIgnored.
When I added the attribute by hand, no problems were reported, but it
didn't help with the EL content assist either.

Nitin Dahyabhai wrote:
> Doug Erickson wrote:
>> I would swear that at one time, WTP supported content assist in JSP
>> expression language. But, if I start an expression--"${"--all it does
>> for me is add " }" (and I don't really want that extra space).
>>
>> No amount of Ctrl-Space gives me anything more than a message in the
>> status bar: "Content Assist not available at the current location". No
>> implicit objects are available to start the expression, and even if I
>> type a variable (introduced through a jsp:useBean action) myself, the
>> content assist refuses to offer completions for it's properties.
>>
>> Is content assist available for JSP EL in WTP 1.5.4/Eclipse 3.2.2? If
>> so, any suggestions for getting it working?
>
> Are you within a Dynamic Web Project, or at least a Java project that
> has the servlet jars on its build path?
>
> --
> Nitin Dahyabhai
> Structured Source Editor
Re: Content Assist supported for Expression Language in JSP? [message #194938 is a reply to message #194791] Mon, 25 June 2007 21:51 Go to previous message
Eclipse User
Originally posted by: erickson_d.yahoo.removethis.com

Any other suggestions about what to look for here?

If I start a scriptlet, content assist works fine, but if I start JSP
EL, I get nothing.

I've tried changing the JRE System Library as well as Eclipse's -vm
option, but that didn't make any difference. Currently, I have it
pointed at a 1.5 JDK installation.

Doug Erickson wrote:
> I would swear that at one time, WTP supported content assist in JSP
> expression language. But, if I start an expression--"${"--all it does
> for me is add " }" (and I don't really want that extra space).
>
> No amount of Ctrl-Space gives me anything more than a message in the
> status bar: "Content Assist not available at the current location". No
> implicit objects are available to start the expression, and even if I
> type a variable (introduced through a jsp:useBean action) myself, the
> content assist refuses to offer completions for it's properties.
>
> Is content assist available for JSP EL in WTP 1.5.4/Eclipse 3.2.2? If
> so, any suggestions for getting it working?
Previous Topic:Some Webservice features are missed in my WTP+eclipse
Next Topic:Can't get started with webtools
Goto Forum:
  


Current Time: Thu Sep 18 11:56:16 GMT 2014

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

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