Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Problem Resolving statically imported JSPs in WTP:
Problem Resolving statically imported JSPs in WTP: [message #164832] Fri, 24 March 2006 08:39 Go to next message
Eclipse User
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 02:37 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2238
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 WTP, IBM
Previous Topic:JSP and Tags
Next Topic:Team CVS > Disconnect option disappears on installing WTP??
Goto Forum:
  


Current Time: Fri Aug 01 05:55:49 EDT 2014

Powered by FUDForum. Page generated in 0.02292 seconds