Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Unknown Tag (c:out) error in JSP editor
Unknown Tag (c:out) error in JSP editor [message #172854] Tue, 04 July 2006 02:36 Go to next message
Eclipse UserFriend
Originally posted by: snafu00.bellsouth.net

I am using Eclipse SDK Version 3.1.0 Build id: I20050627-1435 with the Web
Standard Tools version 0.7.0. I'm using Tomcat 5.5.4 as my container and
running all this on Windows XP.

I've built a project that uses JSP 1.2

I've removed all taglib definitions from the web.xml file

And inserted the following taglib statements in my JSP's
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
When I edit the JSP in eclipse I get the error message "unknown tag (c:out)"
or "unknown tag (c:set)", but when I run on server - it works perfectly. So
everything is setup to Tomcat's liking, but I'm missing something in
eclipse.
I've placed the Apache JSTL 1.1 jar files in the WebContent/WEB-INF/lib
directory (and they moved to the Web App Libraries. I've examined the
Standard.jar and the Meta-Inf Contains a c.tld file that has the following:
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<description>JSTL 1.1 core library</description>
<display-name>JSTL core</display-name>
<tlib-version>1.1</tlib-version>
<short-name>c</short-name>
<uri>http://java.sun.com/jsp/jstl/core</uri>
Here's my web.xml file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>jScrapBook by Henry</display-name>
<!-- Standard Action Servlet Configuration (with debugging) -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class >
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>

<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<resource-ref>
<res-ref-name>postgresql/books</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Unshareable</res-sharing-scope>
</resource-ref>
</web-app>

Any thoughts on why I'm getting the unknown tag (c:out) error would be
gratefully appreciated.
Thanks,
Henry
Re: Unknown Tag (c:out) error in JSP editor [message #172871 is a reply to message #172854] Tue, 04 July 2006 07:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Henry,

did you try to insert the taglib in web.xml (I think I heard somewhere that this
is not required any more, but at least I had it working this way). I once had a
problem with taglibs not named "taglib.tld" but don't remember whether WTP 0.7
or JBoss were the reason. Notice that I extracted the c.tld from the jar to a
subdir "tags" in WEB-INF:

<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tags/c.tld</taglib-location>
</taglib>
</jsp-config>

Hope this helps

Wolfgang

Henry wrote:
> I am using Eclipse SDK Version 3.1.0 Build id: I20050627-1435 with the Web
> Standard Tools version 0.7.0. I'm using Tomcat 5.5.4 as my container and
> running all this on Windows XP.
>
> I've built a project that uses JSP 1.2
>
> I've removed all taglib definitions from the web.xml file
>
Re: Unknown Tag (c:out) error in JSP editor [message #173240 is a reply to message #172871] Thu, 06 July 2006 01:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: snafu00.bellsouth.net

Thanks Wolfgang,
I can't tell you what happened - but it's working. I hate problems like
that. One minute nothing - go away for an hour and try again - and volia -
it works.

Henry


"Wolfgang Knauf" <wknauf_NO_@_INSIDE_hg-online.de> wrote in message
news:e8d5ju$shs$1@utils.eclipse.org...
> Hi Henry,
>
> did you try to insert the taglib in web.xml (I think I heard somewhere
> that this is not required any more, but at least I had it working this
> way). I once had a problem with taglibs not named "taglib.tld" but don't
> remember whether WTP 0.7 or JBoss were the reason. Notice that I extracted
> the c.tld from the jar to a subdir "tags" in WEB-INF:
>
> <jsp-config>
> <taglib>
> <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
> <taglib-location>/WEB-INF/tags/c.tld</taglib-location>
> </taglib>
> </jsp-config>
>
> Hope this helps
>
> Wolfgang
>
> Henry wrote:
>> I am using Eclipse SDK Version 3.1.0 Build id: I20050627-1435 with the
>> Web Standard Tools version 0.7.0. I'm using Tomcat 5.5.4 as my container
>> and running all this on Windows XP.
>>
>> I've built a project that uses JSP 1.2
>>
>> I've removed all taglib definitions from the web.xml file
>>
Re: Unknown Tag (c:out) error in JSP editor [message #173367 is a reply to message #173240] Thu, 06 July 2006 15:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

One minute nothing - go away for an hour and try again - and volia -
> it works.
>

Seems to be a general feature of WTP: self healing software. If a bug occurs it
is repaired automatically ;-). I had one of those non reproducables, too ;-).

Best regards

Wolfgang
Re: Unknown Tag (c:out) error in JSP editor [message #173455 is a reply to message #173240] Fri, 07 July 2006 03:54 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Henry wrote:
> Thanks Wolfgang,
> I can't tell you what happened - but it's working. I hate problems like
> that. One minute nothing - go away for an hour and try again - and volia -
> it works.

That's discouraging, if only because we don't know what was
happening. You might find better reliability with the just released
WTP 1.5 on Eclipse 3.2, or at least WTP 1.0.2, the latest release
for Eclipse 3.1

--
- Nitin


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Eclipse with WTP and Tomcat on Mac
Next Topic:Errors detected on simple JSP file
Goto Forum:
  


Current Time: Thu Apr 18 05:03:51 GMT 2024

Powered by FUDForum. Page generated in 0.01987 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top