Home » Language IDEs » ServerTools (WTP) » JSP taglib problem on eclipse 2.1
JSP taglib problem on eclipse 2.1 [message #9379] |
Sun, 19 October 2003 18:55  |
Eclipse User |
|
|
|
Originally posted by: daniel787.lycos.com
Hi all,
I am not sure if this is the right newsgroup since there seems to be more
developers than users, but it is the most relevant I found, since I have a
web application related issue. If there is a more appropriate forum on the
eclipse site please let me know, I don't want to be posting where I
shouldn't.
I am now starting to learn JSP, coming from a Java background, and decided
to use eclipse after having a look around. I got myself a book and started
doing some of the examples. They worked fine when using just a text
editor. The problem I have with eclipse is this:
I am using eclipse 2.1, with tomcat 5.0.12beta and the Lomboz plugin on a
windows 2000 machine. Java version is
java version "1.4.2_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
I created a Lomboz J2EE project, and then a web module inside the project.
Simple JSP pages created in the module are deployed fine (when I say
simple I mean without taglibs). Also, the JSP 2.0 Expresion Language works
fine (I had to change the web.xml definition for that, since the one that
is automatically created by lomboz refers to the older style 2.3 but we
want 2.4 for the EL to work), so my web.xml starts like that:
<?xml version="1.0" ?>
<web-app version="2.4"
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 web-app_2_4.xsd">
Now I have tried to add a taglib statement in the first line of the jsp
page and the eclipse editor flags it as an error. The statement is:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
as the taglibs readme states:
USING THE STANDARD TAG LIBRARY
To use this distribution with your own web applications, simply copy the
JAR files in the 'lib' directory (jstl.jar and standard.jar) to your
application's WEB-INF/lib directory (add the other dependencies as well if
your runtime does not already provide them). Then, import JSTL into your
pages with the following directives:
CORE LIBRARY
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
I have followed the readme instructions that come with taglibs (the
precise taglibs file I downloaded is jakarta-taglibs-20031006.zip). I
copied the 2 libraries from the
jakarta-taglibs-20031006\jakarta-taglibs-standard-1.1.0-B1\l ib folder,
jstl.jar and standard.jar to the WEB-INF\lib folder of my project, but
still the error is there. I have tried changing the uri to all variations,
removing the "/jsp" part, including the _rt in the end and everything. I
have tried adding the required libraries (.jar files) to the eclipse
Project Properties / Java Build Path / Libraries, since I think this is
probably some internal eclipse configuration issue, and by doing it
through the IDE it would generate the required dependencied internally,
but the error is still there. I have tried copying the libraries to the
common\lib folder of tomcat, but no luck either.
Can anyone who uses taglibs with eclipse tell me how do you configure the
libraries? I cannot use the taglibs at all if I don't solve this, I have
spend several hours looking on the net, on the eclipse site, and the
taglibs jakarta archive but I cannot find this anywhere, everybody refers
to more complex problems. Can someone please help?
Thanks
|
|
| |
Goto Forum:
Current Time: Thu May 01 09:36:29 EDT 2025
Powered by FUDForum. Page generated in 0.09697 seconds
|