Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Problem Resolving statically imported JSPs in WTP:
Problem Resolving statically imported JSPs in WTP: [message #164832] Fri, 24 March 2006 13:39 Go to next message
Eclipse UserFriend
Originally posted by: robert.dare.gmail.com

Eclipse 3.1.2, WTP 1.0

There seems to be a bug in the JSP editor when the
project is not in the workspace directory. The JSP
editor can not resolve statically linked pages when they
begin at the WebContent root.

Scenario:

I have an existing Dynamic Web Project. I am using JSP
2.0, and have .jsp file where I define all of my taglib
references. I statically include this page in my other
jsp pages as such:
<%@include file="/includes/tags.jsp" %>

When the project is in my workspace, the JSP editor is
able to resolve tags.jsp. If the project is in a folder
outside of my workspace, and imported into the workspace,
the JSP editor can NOT resolve the includes.

Has anyone else been able to get this to work?


As an aside, the JSP editor (when working properly)
seems to be able to resolve includes ONLY by one level...
meaning, if I include common.jsp, and common.jsp includes
tags.jsp, the JSP editor can NOT see tags.jsp

MyEclipse can resolve all the includes and gives you
auto-complete for the JSTL tags. Can WTP do this?

Regards,

Rob.
Re: Problem Resolving statically imported JSPs in WTP: [message #167444 is a reply to message #164832] Tue, 25 April 2006 06:37 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

dare wrote:
> Eclipse 3.1.2, WTP 1.0
>
> There seems to be a bug in the JSP editor when the
> project is not in the workspace directory. The JSP
> editor can not resolve statically linked pages when they
> begin at the WebContent root.
>
> Scenario:
>
> I have an existing Dynamic Web Project. I am using JSP
> 2.0, and have .jsp file where I define all of my taglib
> references. I statically include this page in my other
> jsp pages as such:
> <%@include file="/includes/tags.jsp" %>
>
> When the project is in my workspace, the JSP editor is
> able to resolve tags.jsp. If the project is in a folder
> outside of my workspace, and imported into the workspace,
> the JSP editor can NOT resolve the includes.
>
> Has anyone else been able to get this to work?

Does this appear to still be broken in the 1.0.2 release candidates
or 1.5? Regardless, please open bugs on any behavior you see that
doesn't agree with how includes are processed by your runtime.

> As an aside, the JSP editor (when working properly)
> seems to be able to resolve includes ONLY by one level...
> meaning, if I include common.jsp, and common.jsp includes
> tags.jsp, the JSP editor can NOT see tags.jsp
>
> MyEclipse can resolve all the includes and gives you
> auto-complete for the JSTL tags. Can WTP do this?


--
- Nitin


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:JSP and Tags
Next Topic:Team CVS > Disconnect option disappears on installing WTP??
Goto Forum:
  


Current Time: Thu Apr 25 20:17:23 GMT 2024

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

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

Back to the top