- This topic has 5 replies, 3 voices, and was last updated 21 years, 5 months ago by Scott Anderson.
-
AuthorPosts
-
pavel4uMemberSo 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.jarNow 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
support-michaelKeymasterMyEclipse 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
pavel4uMemberThank 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
support-michaelKeymasterA 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
pavel4uMemberHi Micheal
Great!
Looking forward to this fixed “feature enhancement opportunity” 🙂Cheers
-paVel
Scott AndersonParticipantIssues identified in this thread were addressed in MyEclipse 2.1.1 EA2
–Scott
MyEclipse Support -
AuthorPosts