Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » include file directives ignored/not validated
include file directives ignored/not validated [message #166598] Wed, 12 April 2006 16:47 Go to next message
Eclipse UserFriend
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 06:50 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
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 Web Tools Platform
Previous Topic:Help, WTP not working as expected
Next Topic:Enabling content assist in XML editor
Goto Forum:
  


Current Time: Thu Apr 25 05:19:44 GMT 2024

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

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

Back to the top