Problem Resolving statically imported JSPs in WTP: [message #164832] |
Fri, 24 March 2006 13:39 |
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 06:37 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03023 seconds