October 14, 2004 at 11:13 am #217629
I can guarentee this is a setup issue on my end but I need a kick in the right direction…
I have been using MyEclipse and learning my way through JSP’s, Servlets, and Beans. My environment has been J2SE with Eclipse 3.0.
I’ve been pretty successful so far but I just tried to use the core JSTL stuff. When I add
<%@ taglib uri=’http://java.sun.com/jstl/core’ prefix=’c’ %>
to the top of one of my JSP’s I get:
Severity Description Resource In Folder Location Creation Time
2 File “http://java.sun.com/jstl/core” not found. NOTE: No JSP line number was avaliable so line 1 was used for the marker. EditUser.jsp HelloWorldJSP/WebRoot/Admin line 1 October 14, 2004 11:00:14 AM
After a little digging around on the SUN sight, I realized I needed the J2EE SDK so I downloaded it and installed it. My problem didn’t go away though.
What step am I missing?
ThanksOctober 14, 2004 at 11:25 am #217634
Is this a normal Java Project? Did you add Web Capabilities to it? Did you try and add the J2EE 1.4 Library Set to your project? Did you add the JSTL libs to your project?
Any or all of these steps can probably help you get rid of that error.October 14, 2004 at 11:26 am #217635
Moving to J2EE devOctober 14, 2004 at 11:35 am #217644
Yes it’s a web project. I started with the Hello World project in you demo and have exploring from there.
To make sure I do this right, here’s what I think you’re telling me to do…
1. Bring up my Project Properties
2. Select ‘Java Build Path’ in the tree
3. Select the ‘Libraries’ tab
4. Select the ‘J2EE 1.4 Library Container’
5. Click ‘Add Library’
In ‘Order and Export’ do I need to check ‘J2EE 1.4 Library and Container’?
ThanksOctober 14, 2004 at 11:38 am #217646
1-5) Yes exactly
Order And Export: No need to do this.
Did that help? Try rebuilding your project after doing that (Project > Clean…) and make sure “Automatically build” is selected.October 14, 2004 at 11:55 am #217653
That did not fix my problem.
When I look at my project via Package Explorer I see the J2EE 1.4 Library Container with the following jar’s: activation.jar, javax.serlet.jar, javax.servlet.jsp.jar, jboss-j2ee.jar, jboss-jaxrpc.jar, jboss-jsr77.jar, jboss-saaj.jar, mail.jar, namespace.jar, and xml-apis.jar
I tried doing the clean with auto build. I tried turning off auto build and doing a clean and then build all.
Any other suggestions?October 14, 2004 at 12:04 pm #217655
Any other suggestions?
No seriously, Export the project to a zip and email it to us with a reference to this thread, I’ll hvae alook at it.October 14, 2004 at 12:49 pm #217668
You should have it. The subject line is:
Zip file to go with the thread ‘New to JSP, can’t find JSTL core taglib’ for rkallaOctober 14, 2004 at 1:54 pm #217684
I just created a test web project and checked ‘Add JSTL 1.0 to WEB-INF/lib folder’. Doing so added a bunch of *.tld’s to my WEB-INF folder and a bunch of *.jars to by lib directory.
I’m guessing this is what is missing in the demo project I submitted. How do I get this stuff added?
ThanksOctober 14, 2004 at 2:00 pm #217686
Do the same thing in your other project, its always there under the MyEclipse menu.October 14, 2004 at 2:56 pm #217691
I just found that if you right-click on the project in Navigator. You can go to MyEclipse|’Add JSTL…’
This took care of that problem.
Thanks for all of your help.October 14, 2004 at 3:03 pm #217694
Glad its working now, sorry I didn’t catch this earlier 😉