facebook

JSP Editor – Unknown Tag

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 4 posts - 31 through 34 (of 34 total)
  • Author
    Posts
  • #253660 Reply

    cri_tsg
    Member

    I have always had /src/main/java and /src/main/resources as “source” folders. And the “Add MyEclipse Web Capabilities” wizard will only allow /src/main and src/main/WEB-INF (bad idea!!) to be web root. I also removed /src/main/webapp as a source folder and made it the web root. Even then, jsp tags were still not recognized.

    I may give Eclipse 3.2 and MyEclipse 5 a shot.

    Thanks for all of your attention with this issue. I’ll be back if I cannot find a workable solution with the new configuration 😉

    Morgan

    #253677 Reply

    Riyad Kalla
    Member

    Morgan,
    I’m almost certain I could get your app working, can you zip it up and send it to me and I’ll put it into a MyEclipse project for you and send it back? If so, email it to support@genuitec.com ATTN Riyad with a link to this thread so I know why I’m getting it.

    #253764 Reply

    cri_tsg
    Member

    Riyad,

    I installed Eclipse 3.2RC7 and MyEclipse 5.0 Milestone 1 and I got it to work. If things should change, I’ll let you know.

    Here’s what I did:

    – removed /src/main/webapp as a source folder
    – added web project capability
    – /src/main/webapp is web root folder
    – did not add any jars, etc.
    – added /src/main/webapp back as a source folder
    – Unchecked “Allow output folders for source folders”, then changed target folder for all source folders to match maven’s output location (/target).
    – closed the project
    – copied all required tlds to /WEB-INF/tld, to match the <taglib-location> in web.xml.
    – re-opened project, refreshed

    Now the JSP editor recognizes all tld files that are referenced, as long as they exist in the
    /src/main/webapp/WEB-INF/tld folder. This is what did not work in Eclipse/MyEclipse 3.1/4.1.1.

    Ideally, Eclipse/MyEclipse/Maven would have better integration to the point where all dependencies specified in Maven’s pom files would be recognized by editors/builders/etc.

    Maven is smart enough to ignore the tld files in the /src/../WEB-INF directory, so it doesn’t impact my build process or the generated artifacts.

    I think that this is a simple enough work-around that it is acceptable for most cases. However, for anyone else reading this thread, it’s important to note that that if you update struts or any other third-party tag library and you are using Maven, then don’t forget to copy the new jars from your maven repo to the src/main/webapp/WEB-INF/tld file. Otherwise you may not get the most updated intellisense or editor validation.

    Thanks for all your help with this Riyad.

    Morgan

    #253768 Reply

    Riyad Kalla
    Member

    Morgan,
    You know Maven2 support is a bright spot on our radar after we get 5.0 out the door, at that point this integration may flow together more seamlessly. Thanks for trying your project out with 5.0 and letting us know.

Viewing 4 posts - 31 through 34 (of 34 total)
Reply To: JSP Editor – Unknown Tag

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