facebook

How do I correctly add a file-extension to JSP in MyEclipse?

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #213246 Reply

    hnrkp
    Member

    Errorcode: 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?

    #213252

    Riyad Kalla
    Member

    Just 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.

    #214139

    Terry Roe
    Member

    Riyad,

    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

    #214149

    Riyad Kalla
    Member

    TR,
    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.

    #214155

    Terry Roe
    Member

    Riyad,

    Yes, that is the error message I get.

    TR

    #214160

    Riyad Kalla
    Member

    TR 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.

    #214161

    Terry Roe
    Member

    Riyad,

    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

    #214162

    Riyad Kalla
    Member

    Yea I remember it, that’s why I’m confused too.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: How do I correctly add a file-extension to JSP in MyEclipse?

You must be logged in to post in the forum log in