facebook

TLD files in required projects not recognized

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #223728 Reply

    pipelare
    Member

    Hello,
    This could be seen as a bug or a feature request. Tag descriptor files (*.tld) are supposed to be found either through web.xml, looking at the contents of the WEB-INF dir, or looking at the contents of jars in WEB-INF/lib.

    Now, when you add a project to your web project’s build path, the deployer correctly jars up the project and throws that file into WEB-INF/lib. That means that any TLDs in that project’s META-INF will be considered by the JSP container.

    However, MyEclipse does not look for TLD files in imported projects (for the purposes of code completion, error detection, etc.). It would be nice if it did so that we don’t have to redundantly copy TLDs from these imported projects to our web project’s WEB-INF dir.

    Thanks,
    Alfonso.

    #223749 Reply

    Riyad Kalla
    Member

    Tag descriptor files (*.tld) are supposed to be found either through web.xml, looking at the contents of the WEB-INF dir, or looking at the contents of jars in WEB-INF/lib.

    Exactly.

    It would be nice if it did so that we don’t have to redundantly copy TLDs from these imported projects to our web project’s WEB-INF dir.

    Are you saying that a JAR in the dependent project contains TLDs, or that once the dep project is compressed, it contains TLDs in it’s META-INF folder? Does your source tree for the dep project look like this:

    
    + /src
      + /META-INF
        + mytags.tld
      + /com
        + /blarg
          + /...
    
    #224091 Reply

    pipelare
    Member

    Never mind. The META-INF folder was in the wrong place. It works A-OK.

    Thanks!
    Alfonso.

    #224094 Reply

    Riyad Kalla
    Member

    Glad to hear it, thanks for following up.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: TLD files in required projects not recognized

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