Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » JSP tag libraries and code assist
JSP tag libraries and code assist [message #170163] Thu, 25 May 2006 23:13 Go to next message
Eclipse UserFriend
Originally posted by: mattkrevs.internode.on.net

Hi all

I am using several tag libraries and have all of my declarations in a page
that i include on all other pages

eg include.jsp
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="joda" uri="http://www.joda.org/joda/time/tags" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="tiles" uri="http://jakarta.apache.org/struts/tags-tiles"
%>

first line of mypage.jsp
<%@ include file="/WEB-INF/jsp/include.jsp" %>

The problem I am having is that Content Assist is only working for the c and
fmt tag libraries when the tag library delclarations are in an included
file, but it doesnt work for for joda, spring or tiles.

Content Assist does work for joda, spring and tiles if I explicitly include
the declarations in mypage.jsp

My server is Tomcat 5.5 and my web.xml is using servlet version 2.4

Does anyone know if there is anywhere in Eclipse preferences or somewhere
else that I can get Content Assist to work for all tag libraries. Its kind
of odd that it works for some and not others.

Thanks
Re: JSP tag libraries and code assist [message #170172 is a reply to message #170163] Fri, 26 May 2006 05:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mattkrevs.internode.on.net

A bit more info

Content Assist only refuses to work if I open my JSP from a linked folder.
If I open i directly from the WEB-INF/jsp folder within my webapp it works
ok

since WEB-INF/jsp is about 5 clicks away...is there a way to get this
working I wonder if a file is opened from a linked folder? It seems as
though Eclipse gets confused with relative paths of included jsps when a jsp
is opened from a linked folder.

"Matt Krevs" <mattkrevs@internode.on.net> wrote in message
news:e55dm0$frt$1@utils.eclipse.org...
> Hi all
>
> I am using several tag libraries and have all of my declarations in a page
> that i include on all other pages
>
> eg include.jsp
> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
> <%@ taglib prefix="joda" uri="http://www.joda.org/joda/time/tags" %>
> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
> <%@ taglib prefix="tiles"
> uri="http://jakarta.apache.org/struts/tags-tiles" %>
>
> first line of mypage.jsp
> <%@ include file="/WEB-INF/jsp/include.jsp" %>
>
> The problem I am having is that Content Assist is only working for the c
> and fmt tag libraries when the tag library delclarations are in an
> included file, but it doesnt work for for joda, spring or tiles.
>
> Content Assist does work for joda, spring and tiles if I explicitly
> include the declarations in mypage.jsp
>
> My server is Tomcat 5.5 and my web.xml is using servlet version 2.4
>
> Does anyone know if there is anywhere in Eclipse preferences or somewhere
> else that I can get Content Assist to work for all tag libraries. Its kind
> of odd that it works for some and not others.
>
> Thanks
>
Re: JSP tag libraries and code assist [message #170857 is a reply to message #170172] Thu, 08 June 2006 14:47 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 722
Registered: July 2009
Senior Member
On Fri, 26 May 2006 01:30:51 -0400, Matt Krevs
<mattkrevs@internode.on.net> wrote:

> A bit more info
>
> Content Assist only refuses to work if I open my JSP from a linked
> folder.
> If I open i directly from the WEB-INF/jsp folder within my webapp it
> works
> ok
>

I'm not sure we've tested linked folders well.
Sounds like a good bug to enter, if there's not one already.
Re: JSP tag libraries and code assist [message #171298 is a reply to message #170857] Thu, 15 June 2006 08:15 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

David Williams wrote:
> On Fri, 26 May 2006 01:30:51 -0400, Matt Krevs
> <mattkrevs@internode.on.net> wrote:
>
>> A bit more info
>>
>> Content Assist only refuses to work if I open my JSP from a linked
>> folder.
>> If I open i directly from the WEB-INF/jsp folder within my webapp it
>> works
>> ok
>>
>
> I'm not sure we've tested linked folders well.
> Sounds like a good bug to enter, if there's not one already.

Matt,
Which version of WTP are you using?

--
- Nitin


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: JSP tag libraries and code assist [message #171975 is a reply to message #171298] Thu, 22 June 2006 07:22 Go to previous message
Eclipse UserFriend
Originally posted by: mattkrevs.internode.on.net

1.0.2v200604280000

"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:e6r4uf$hsq$2@utils.eclipse.org...
> David Williams wrote:
>> On Fri, 26 May 2006 01:30:51 -0400, Matt Krevs
>> <mattkrevs@internode.on.net> wrote:
>>
>>> A bit more info
>>>
>>> Content Assist only refuses to work if I open my JSP from a linked
>>> folder.
>>> If I open i directly from the WEB-INF/jsp folder within my webapp it
>>> works
>>> ok
>>>
>>
>> I'm not sure we've tested linked folders well.
>> Sounds like a good bug to enter, if there's not one already.
>
> Matt,
> Which version of WTP are you using?
>
> --
> - Nitin
Previous Topic:open type does not work with wst ui source?
Next Topic:.NET dataset deserialization
Goto Forum:
  


Current Time: Thu Apr 18 23:08:13 GMT 2024

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

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

Back to the top