Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » include file directives ignored/not validated
include file directives ignored/not validated [message #166598] Wed, 12 April 2006 12:47 Go to next message
Eclipse User
Originally posted by: sk.isc.tuc.gr

I have a dynamic web project, and I want to include files from within a
JSP file.

Let's say I have A.jsp which includes B.jsp, and B includes C.jsp
When I use
<%@include file="/includes/B.jsp"%>
then variables declared in C.jsp are not recognised in A.jsp (and neither
in B)

when I use jspf extension for B and C then I have the same situation +
B.jspf and C+jspf are not parsed for errors at all.

So the general question is:

what is the "correct" way to include JSP fragments and have them correctly
parsed?

Regards

Stefanos
Re: include file directives ignored/not validated [message #167465 is a reply to message #166598] Tue, 25 April 2006 02:50 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2228
Registered: July 2009
Senior Member
Stefanos Karsavvidis wrote:
> I have a dynamic web project, and I want to include files from within a
> JSP file.
>
> Let's say I have A.jsp which includes B.jsp, and B includes C.jsp
> When I use
> <%@include file="/includes/B.jsp"%>
> then variables declared in C.jsp are not recognised in A.jsp (and
> neither in B)
>
> when I use jspf extension for B and C then I have the same situation +
> B.jspf and C+jspf are not parsed for errors at all.
>
> So the general question is:
> what is the "correct" way to include JSP fragments and have them
> correctly parsed?

Which build of WTP are you using? There's at least one lingering
bug we're hoping to fix in 1.5 regarding what the "known" tag
libraries are at edit-time, and that "known" list is where the
custom tag libraries variables come from. Or did you mean variables
from scriplet/expression/declaration source?

Also, in recent 1.5 builds there's an option on the project's JSP
Fragment property page controlling whether to validate them or not.

--
- Nitin


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Help, WTP not working as expected
Next Topic:Enabling content assist in XML editor
Goto Forum:
  


Current Time: Tue Jul 22 07:36:34 EDT 2014

Powered by FUDForum. Page generated in 0.01501 seconds