- This topic has 7 replies, 3 voices, and was last updated 20 years, 10 months ago by
Riyad Kalla.
-
AuthorPosts
-
hnrkpMemberErrorcode: None of the enabled validators validates that type of resource.
I have named the jsp include files with extension *.jspinclude.
They are included in *.jsp files with:
<%@ include file=”/src/jsphtml/general/header.jspinclude”%>
Q: When I run JSP validation on a *.jspinclude file, I get the errormesage:
None of the enabled validators validates that type of resource.
I have added the *.jspinclude to the editor preferences. It opens in JSP editor, but all text is black.
How do I correctly set the new file-extension in MyEclipse?
August 24, 2004 at 10:20 am #213252
Riyad KallaMemberJust a FYI: JSP files that are intended only to be included in other files, per the JSP spec, are suggested to be named “*.jspf” for “JSP Fragment”
Also the validators are only intended to run on complete JSP pages, not fragments of JSP pages as it would naturally fail. Because of that you can’t run the validator on non-JSP pages, in your case, JSP fragments.
If your jsp files ARE complete JSP pages, they it is suggested you name them with a .jsp ending and optionally put them in a different location to note their use, e.g.: /WEB-INF/jsp/includes or something equivalent.
August 31, 2004 at 4:03 pm #214139
Terry RoeMemberRiyad,
I am getting this error when trying to validate *.htm files. I tried renaming to *.html, but it didn’t seem to matter. I have the HTML validation enabled on the MyEclipse->Validation tab and there is no override enabled for the project. What am I missing? (Seems I remember this working before I did my recent “clean” install.)
Thanks,
TR
August 31, 2004 at 4:58 pm #214149
Riyad KallaMemberTR,
Do you get an error that says this when you try and validate it?Resource /TestWeb/webroot/MyHtml.html was not validated because none of the enabled validators validates that type of resource.
August 31, 2004 at 5:28 pm #214155
Terry RoeMemberRiyad,
Yes, that is the error message I get.
TR
August 31, 2004 at 6:21 pm #214160
Riyad KallaMemberTR I filed this as a bug since I cannot validate locally either, lets see if we are doing something silly or if its a bug.
August 31, 2004 at 6:26 pm #214161
Terry RoeMemberRiyad,
I could’ve sworn this was working previously (in a previous release or installation?) because I remember seeing oodles of warnings in the file I just tried to validate in my current setup.
Remember we went round and round about the -vm needing to be specified on the command line? I’m doing that and the JSPs seem to validate pretty well. Though, I’m still waiting for left margin icons and Package Explorer icon decorations.
TR
August 31, 2004 at 6:47 pm #214162
Riyad KallaMemberYea I remember it, that’s why I’m confused too.
-
AuthorPosts