facebook

does not support more than one tld??

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    huadong
    Member

    I use myEclipse to edit jive’s project, and jive have two taglibs: webwork and jivetags.

    so the web.xml look like:

    <taglib>
    <taglib-uri>jivetags</taglib-uri>
    <taglib-location>/WEB-INF/lib/jiveforums.jar</taglib-location>
    </taglib>

    <taglib>
    <taglib-uri>webwork</taglib-uri>
    <taglib-location>/WEB-INF/lib/jivebase.jar</taglib-location>
    </taglib>

    in the jsp file, I use these:

    <%@ taglib uri=”webwork” prefix=”ww” %>
    <%@ taglib uri=”jivetags” prefix=”jive” %>

    the myeclipse cann’t bind the webwork’s tags with webwork, instead, it binds the jivetags’s tags to both webwork and jivetags.

    what is the matter? help me. tks.

    #209437

    Riyad Kalla
    Member

    This is likely a problem with the TLD files inside of the JAR files. Please open up both JAR files, and look in the META-INF directory, then look for the .TLD files inside of them. Open them up with a text editor. If the TLD files DO DEFINE a default URI for the taglibs, then you need to use that in your web.xml file, you cannot reference the location of a TLD file by giving a JAR name. If the JAR files DO contain valid TLD files, then you don’t even need to have web.xml taglib entries for the tags if you don’t mind using the default URIs. If you wish to keep using your own URIs, then you need to play the TLD files in your /WEB-INF or some subdir under WEB-INF, and then update your taglib-location entries to point to the TLD files.

    Check out my last post here: http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-1184-start-15.html and read the entire thread for pretty much the exact same situation and walkthrough you are having, but with the OSCache taglibs instead.

    #209473

    huadong
    Member

    Before I report this bug, I hava done the follow things:
    1) I open the jars and modify the TLD file taglib.tld in META-INF directory with the URI webwork/jivetags,
    the rebuild the jsps with myEclipse. still FAILED.
    2) I checkout the TLD files of the jars, put them in the directory /WEB-INF/lib and modify the web.xml with
    the exactly taglib-location. still FAILED.

    #209474

    Riyad Kalla
    Member

    Try and move the TLD files into your WEB-INF dir (out of the lib dir) update your web.xml entries and try that. Please paste your web.xml taglib entries here for review, and also your %@taglib entries from your JSP pages using the taglibs after you have made this change.

    #209475

    huadong
    Member

    Appreciate for your patience.

    I follow you, but still not work.

    web.xml

    <taglib>
    <taglib-uri>jivetags</taglib-uri>
    <taglib-location>/WEB-INF/jivetags.tld</taglib-location>
    </taglib>

    <taglib>
    <taglib-uri>webwork</taglib-uri>
    <taglib-location>/WEB-INF/webwork.tld</taglib-location>
    </taglib>

    jsp

    <%@ taglib uri=”webwork” prefix=”ww” %>
    <%@ taglib uri=”jivetags” prefix=”jive” %>

    use alt+/ in myEclipse Editor
    the hints:
    <j><jive:>-Tag Library for Jive Forums 3.0
    <j><ww:>-Tag Library for Jive Forums 3.0

    type “<ww:” in the Editor then type alt+/ , the hints is jivetags’s tags

    jivetags.tlb:
    <tlibversion>1.0</tlibversion>
    <jspversion>1.1</jspversion>
    <shortname>Tag Library for Jive Forums 3.0</shortname>
    <uri>jivetags</uri>
    <info>Tab Library for Jive Forums 3.0</info>

    webwork.tlb
    <!– The version number of this tag library –>
    <tlibversion>1.1</tlibversion>
    <!– The JSP specification version required to function –>
    <jspversion>1.2</jspversion>
    <!– The short name of this tag library –>
    <shortname>webwork</shortname>
    <!– Public URI that uniquely identifies this version of the tag library –>
    <uri>webwork</uri>
    <!– General information about this tag library –>
    <info>A tag library for processing Model-2 command results</info>

    #209492

    Scott Anderson
    Participant

    huadong,

    Can you please post the configuration information we request in the ‘Posting Guidelines’ thread at that top of the forum. Please be sure to include any log file entries from <workspace>/.metadata/.log

    #209529

    huadong
    Member

    OS: Microsoft Windows 2000 Professional (5.0, version 2195)
    Language: Simplified Chinese
    Eclipse: Version: 3.0.0 Build id: 200406251208, not other plugin
    MyEclipse: Version: 3.7.101 Build id: 200405301200-3.8-Beta1
    jdk: java version “1.4.2_01”
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
    Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)

    There is no .log file for MyEclipse when I rebuild all jsp files with myEclipse

    #209538

    Riyad Kalla
    Member

    Are the Jive taglibs freely available such that I can try and reproduce this locally?

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: does not support more than one tld??

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