| Author |
Message |
|
|
Post subject: custom tag are not found
Posted: May 21, 2003 - 01:10 PM
|
|
Joined: May 06, 2003
Posts: 4
|
|
So I set up a Web Project with MyEclipse. I put my web.xml in WEB-INF and my jsps one level higher:
Web Root/html/a.jsp
/WEB-INF/web.xml
/WEB-INF/lib/webwork.jar
Now in my web.xml there is a taglib defined as:
<taglib>
<taglib-uri>webwork</taglib-uri>
<taglib-location>/WEB-INF/lib/webwork.jar</taglib-location>
</taglib>
what do I have to do to get this working? in all my jsps all the tags of this taglib are not recognized.
PS: Interesting is that in Eclipse I don't see the WEB-INF/lib folder
Thanks for your help.
-paVel |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 21, 2003 - 02:50 PM
|
|
Moderator


Joined: May 05, 2003
Posts: 1037
|
|
MyEclipse JSP editor requires external TDL files. Webwork is a packaged tag library, i.e., its TDL file is packaged in the META-INF directory of webwork.jar. By extracting the tdl file into my project's WEB-INF folder I'm able to use code completion. Here are the steps I used:
1) extract the webwork.jar/META-INF/taglib.tdl file into your project's WEB-INF directory
2) modify your taglib declaration in web.xml as follows
<taglib>
<taglib-uri>webwork</taglib-uri>
<taglib-location>/WEB-INF/taglib.tld</taglib-location>
</taglib>
3) add taglib directive to your JSPs
<%@ taglib uri="webwork" prefix="webwork" %>
<%@ taglib uri="webwork" prefix="ui" %>
4) within a jsp enter <ui: followed by ctl+space to see completion
Michael
MyEclipse Support |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 22, 2003 - 12:34 PM
|
|
Joined: May 06, 2003
Posts: 4
|
|
Thank you for this workaround.
But I'm sure this has to be changed in the coming release. It is very common to have the tld packaged like that!
So I would say this is a bug. IDEA and Netbeans don't have a problem to handle this correctly.
Cheers
-paVel |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 22, 2003 - 01:10 PM
|
|
Moderator


Joined: May 05, 2003
Posts: 1037
|
|
A bug ?!? I like to think of it as a feature enhancement opportunity. ;-)
Seriously, we fixed this problem yesterday and it will be incorporated in the next release.
Michael
MyEclipse Support |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 22, 2003 - 02:36 PM
|
|
Joined: May 06, 2003
Posts: 4
|
|
Hi Micheal
Great!
Looking forward to this fixed "feature enhancement opportunity" :-)
Cheers
-paVel |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jun 24, 2003 - 03:13 PM
|
|
Moderator


Joined: May 06, 2003
Posts: 6760
|
|
Issues identified in this thread were addressed in MyEclipse 2.1.1 EA2
--Scott
MyEclipse Support |
_________________ --Scott
MyEclipse Support
|
| |
|
|
|
 |
|
|