For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 7 replies, 3 voices, and was last updated 21 years, 5 months ago by
Riyad Kalla.
-
AuthorPosts
-
huadongMemberI 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.
July 6, 2004 at 9:13 am #209437
Riyad KallaMemberThis 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.
July 6, 2004 at 10:58 pm #209473
huadongMemberBefore 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.July 6, 2004 at 11:04 pm #209474
Riyad KallaMemberTry 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.
July 7, 2004 at 2:16 am #209475
huadongMemberAppreciate 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>
…July 7, 2004 at 8:31 am #209492
Scott AndersonParticipanthuadong,
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
July 7, 2004 at 9:09 pm #209529
huadongMemberOS: 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
July 7, 2004 at 11:02 pm #209538
Riyad KallaMemberAre the Jive taglibs freely available such that I can try and reproduce this locally?
-
AuthorPosts
