| Problem with .jspf and validation [message #550761] |
Wed, 04 August 2010 05:24  |
David Goodenough Messages: 155 Registered: July 2009 |
Senior Member |
|
|
I have an old JSP project which I recently started to work on with Helios.
In it there are some .jsp file, and some included .jspf files.
I was used to having errors flagged against the .jspf files, but with Helios
I thought these would go away.
The .jsp files when validated (including the .jspf files of course) are
clear of errors.
In the preferences I have checked that .jspf is marked as a fragment, but
the validation logic still seems to put in error markers on them.
I am not sure if these are old markers which have simply not gone away, or
new markers that are still being generated.
Any ideas on how to get rid of these errors?
David
|
|
|
| Re: Problem with .jspf and validation [message #551242 is a reply to message #550761] |
Thu, 05 August 2010 13:18   |
Nick Sandonato Messages: 119 Registered: July 2009 |
Senior Member |
|
|
Hi David,
What kind of errors are you seeing in the .jspf files?
It might be helpful to know that jspf files are generally not aware of the context that they may be used in. So if it references a variable that is declared in a JSP you know the fragment will be included in, the fragment is unaware of this and will generate problems from that.
[Updated on: Thu, 05 August 2010 13:20] Report message to a moderator
|
|
|
|
| Re: Problem with .jspf and validation [message #552260 is a reply to message #551265] |
Wed, 11 August 2010 09:18  |
Nick Sandonato Messages: 119 Registered: July 2009 |
Senior Member |
|
|
> Type mismatch: cannot convert from boolean to String Head.jspf
> /project/WebContent/WEB-INF/jsp line 95 JSP Problem
This particular problem should be cleared up by https://bugs.eclipse.org/317062
Do you have the preference unchecked for "Validate JSP fragments"? This is under Window > Preferences and then under Web > JSP Files > Validation. Once this option is disabled, doing a full validation should remove the problems.
|
|
|
Powered by
FUDForum. Page generated in 0.02414 seconds