MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
wseubert
Post subject: New to JSP, can't find JSTL core taglib [Closed]  PostPosted: Oct 14, 2004 - 05:13 PM
Registered Member
Registered Member


Joined: Sep 09, 2004
Posts: 55

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?
Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 14, 2004 - 05:25 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

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.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 14, 2004 - 05:26 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Moving to J2EE dev

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
wseubert
Post subject:   PostPosted: Oct 14, 2004 - 05:35 PM
Registered Member
Registered Member


Joined: Sep 09, 2004
Posts: 55

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'?

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 14, 2004 - 05:38 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

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.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
wseubert
Post subject:   PostPosted: Oct 14, 2004 - 05:55 PM
Registered Member
Registered Member


Joined: Sep 09, 2004
Posts: 55

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?
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 14, 2004 - 06:04 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Quote:
Any other suggestions?

Prayer...

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.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
wseubert
Post subject:   PostPosted: Oct 14, 2004 - 06:49 PM
Registered Member
Registered Member


Joined: Sep 09, 2004
Posts: 55

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 rkalla
 
 View user's profile Send private message  
Reply with quote Back to top
wseubert
Post subject:   PostPosted: Oct 14, 2004 - 07:54 PM
Registered Member
Registered Member


Joined: Sep 09, 2004
Posts: 55

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?

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 14, 2004 - 08:00 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Do the same thing in your other project, its always there under the MyEclipse menu.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
wseubert
Post subject:   PostPosted: Oct 14, 2004 - 08:56 PM
Registered Member
Registered Member


Joined: Sep 09, 2004
Posts: 55

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.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 14, 2004 - 09:03 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Glad its working now, sorry I didn't catch this earlier ;)

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits