You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bruno Melloni <Br...@wnco.com> on 2006/11/10 22:37:34 UTC

Struts 1.3.5 and Eclipse 3.2

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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts 1.3.5 and Eclipse 3.2

Posted by Ed Griebel <ed...@gmail.com>.
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_taglib_23

-ed

On 11/10/06, robin bajaj <ro...@gmail.com> 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: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts 1.3.5 and Eclipse 3.2

Posted by robin bajaj <ro...@gmail.com>.
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: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts 1.3.5 and Eclipse 3.2

Posted by Paul Benedict <pb...@apache.org>.
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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts 1.3.5 and Eclipse 3.2

Posted by robin bajaj <ro...@gmail.com>.
Hi Bruno,
The problem seems to be incorrect <taglib uri value.
I am using Struts 1.2.x
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
here's what I have.
I know they changed it from Struts 1.1 to 1.2. << Unless they changed it 
from 1.2 to 1.3.x as well, it should work for you.>>
You can give a shot with this. Or else just wait for some Struts 1.3.x 
user to respond.
regards,
robin

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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts 1.3.5 and Eclipse 3.2

Posted by robin bajaj <ro...@gmail.com>.
Hi Bruno,
The problem seems to be incorrect <taglib uri value.
I am using Struts 1.2.x
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
here's what I have.
I know they changed it from Struts 1.1 to 1.2. Unless they changed it f
You can give a shot with this. Or else just wait for some Struts 1.3.x 
user to respond.
regards,
robin

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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org