- This topic has 3 replies, 2 voices, and was last updated 19 years, 5 months ago by Riyad Kalla.
-
AuthorPosts
-
Zsolt KoppanyMemberHi,
I use myeclipseide-4.0-m2 and would like to add tld (tag library) files to my project to get auto complison and syntax check etc. How can I do that?
Additionally I use an existing struts-1.2 project with jstl and cannot modify the structure of this project. How can I get struts and jstl support for this existing project? I don’t want to add any jar files to my CVS repository I want to keep the jar files outside from my project.
Riyad KallaMemberI use myeclipseide-4.0-m2 and would like to add tld (tag library) files to my project to get auto complison and syntax check etc. How can I do that?
Well that depends, what TLDs exactly do you want to add? If you are talking about Struts or JSTL, you don’t need to add them to get autocomplete and syntax highlighting because both the struts.jar and standard.jar file contain the TLDs inside of them, and MyEclipse will parse/load them for you as long as you have them in the appropriate locations (WEB-INF/lib) and mounted in your build path.
How can I get struts and jstl support for this existing project?
Right click Project > MyEclipse > Add Struts Capabilities / Add JSTL Capabilities
I don’t want to add any jar files to my CVS repository I want to keep the jar files outside from my project.
For correct taglib autocomplete you will need the JARs that contain the TLDs inside of the project as I mentioned above. You can avoid compilation errors by adding then as “External JARs” in your build path, but MyEclipse actually needs these JARs inside of the project itself for proper TLD parsing and handling.
If you don’t wan to add them to CVS, just add them to your .cvsignore file so they exist inside of your project on your computer, but don’ get checked into the repository.
Zsolt KoppanyMemberstruts.jar and jstl.jar (etc.) are already added to my eclipse build path. My project doesn’t have any WEB-INF directory. We generate WEB-INF only when we build a release and that directory will contain a lot of files not necessary during development. Isn’t it enough to add the appropiate jar files to the eclipse build path?
Riyad KallaMemberIsn’t it enough to add the appropiate jar files to the eclipse build path?
You can try it, but due to an issue of how the Eclipse platform handles files not in a project, IIRC there was an issue we had parsing the file for the TLDs when they are externally added to the build path.
Also you may run into other issues with MyEclipse if you don’t have WEB-INF folder during development… it’s hard to say.
-
AuthorPosts