Bruno, I am running Struts 1.3.5 on Eclipse 3.2.1 and have no problem with the tld's being recognized by URI. I can even hold onto the Ctrl button and click with the mouse on the uri and it will brind me to the TLD which is packaged in the META-INF/tld within the given jar file.
Which version of Eclipse are you runnning? Do you have also the WST plugin ( org.eclipse.wst) from eclipse.org (version 1.5.2) - the latest? If not, try installing this plugin or running the update under the Help > Software Updates > Finda And Install or Manage Configuration. Also, if you do have all of that, is this recognized as a Web project by Eclipse? Usually you can tell by right clicking on the project name in the explorer and selecting Properties - if you see a list of items that pertain to Web applications or J2EE then it probably is. Or, by the icon if you could recognize it (a little globe) on the project name. If it is not a Web project, either try creating a new project (New > Web > Dynamic Web Project) and add the jars and see if the tld's are recognized. Alternatively, take the .project file and see if it looks similar to this: <?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>YOUR_PROJECT_NAME_HERE</name> <comment></comment> <projects> </projects> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments> </arguments> </buildCommand> <buildCommand> <name>org.eclipse.wst.common.project.facet.core.builder</name> <arguments> </arguments> </buildCommand> <buildCommand> <name>org.eclipse.wst.validation.validationbuilder</name> <arguments> </arguments> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.wst.common.project.facet.core.nature</nature> <nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> <nature>org.eclipse.jem.workbench.JavaEMFNature</nature> <nature>com.sysdeo.eclipse.tomcat.tomcatnature</nature> </natures> </projectDescription> Some of this might be missing (ie tomcatnature - which is the sysdeo plugin), but you should have these general components. Try tweaking your .project to match this - it is found in the directory where your project is. Hope this helps, EC On 11/14/06, Bruno Melloni <[EMAIL PROTECTED]> wrote:
I think I am being misunderstood. The problem is not related to building a WAR/EAR and running on an application server. Using the TLDs from the jars nor using the URI (thanks for the clarification Wendy) are fine for running in an application server. The problem is the annoying error message from the Eclipse editor. It is the Eclipse editor (or the WTP plug-in) that is not smart enough to recognize the taglibs unless they are physically in WEB-INF. From the messages in this thread that does not appear to be a problem with the pre-packaged MyEclipse distribution, but it does affect the vanilla Eclipse + manually added plugins - even if they are the latest versions. Hopefully this problem will go away in a future version of Eclipse and the WTP. Maybe they'll copy the MyEclipse solution, and if I understood James' comment correctly, it might just be a question of a simple rebuild. bruno -----Original Message----- From: Ed Griebel [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 9:54 AM To: Struts Users Mailing List Subject: Re: Struts 1.3.5 and Eclipse 3.2 YOu don't need to (and never should) extract TLD files from jars and put them into a WEB-INF directory in your war. Web app servers that follow servlet version 2.3 and up have been able to extract TLDs from jars. See for more information: http://struts.apache.org/1.2.9/userGuide/configuration.html#dd_config_ta glib_23 -ed On 11/10/06, robin bajaj <[EMAIL PROTECTED]> wrote: > Or actually you can just get it from your project structure, depending > upon your jsp and tld location. > > Say your jsp is in WebRoot/ [[ webRoot/abc.jsp ]] > and your tld is lying in web-Inf/struts-logic.tld {usual tooling/user > practice} > > Then you can access the .tld as > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> > > I wonder why you dont have the actual .tld files in the web-inf folder > of your webApp. If you actually don't then you can get them from > Struts download site. > Hope it helps, > regards, > robin > > Paul Benedict wrote: > > The taglib URI should be the the http:// address, not the /META-INF > > location. If you are unsure what the address is, open up the TLD > > files and see. > > > > -- Paul > > > > Bruno Melloni wrote: > >> I have a strange problem, with Struts 1.3.5 in Eclipse 3.2. > >> - struts-taglib-1.3.5.jar is in the classpath. > >> - Inside the jar, in /META-INF/tld are the struts tld files. - I > >> have the following in index.jsp: > >> <%@ taglib uri="/META-INF/tld/struts-logic.tld" prefix="logic" > >> %> > >> <logic:redirect forward="welcome" /> > >> - Eclipse whines about the tag not being known. I even tried > >> replacing the URI with "http://struts.apache.org/tags-logic", but no cigar. > >> > >> Any idea what is going on, and how to fix it? > >> > >> Thanks, > >> > >> Bruno > >> > >> ------------------------------------------------------------------- > >> -- To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > -------------------------------------------------------------------- > > - To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Elie Ciment (443) 414-6550 [EMAIL PROTECTED]