facebook

trouble editing JSPs (looking for tld files) [Closed]

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

    Mike Grommet
    Member

    I’ve created a new J2EE – Web Module Project.

    I let the wizard create the Source / Web Root folders and then I exploded a war file into the web root directory that it created.

    My exploded war looks like this
    |- WEB-INF
    |– tld files
    |– lib dir
    |- Jsp files

    So that the Jsp files are at the same level as the WEB-INF file
    Well, MyEclipse tries to compile all of my JSPs and unfortunately it cannot find my tld files under the WEB-INF directory… while this is understandable because my jsp taglib entries look like this:

    <%@ taglib uri=”struts-bean.tld” prefix=”bean” %>

    Weblogic seems to handle this just fine… apparently it set to look for them in the WEB-INF directory…

    Is there any way I can make eclipse look for my tld files beyond the web root?

    #196926 Reply

    Mike Grommet
    Member

    whoops, my post got munged a bit… to clarify…

    JSP files are at the web root level,
    tld files are inside the WEB-INF directory… the diagram above lost its whitespace representation

    #196927 Reply

    Scott Anderson
    Participant

    Did you modify web.xml to add the appropriate <taglib> elements to map the URI to the taglib location? You really shouldn’t be relying on default behavior for this as it’s inherently unportable.

    –Scott
    MyEclipse Support

    #196928 Reply

    Mike Grommet
    Member

    Yep that was it apparently someone before me didn’t map all of the taglibs

    Thanks!!!

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: trouble editing JSPs (looking for tld files) [Closed]

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